How to replicate an LDAP database to a second server.
Resources
OpenLDAP Administration Guide's section on LDAP SyncReplication.
"Provider" ("master") configuration
On the provider (master) server, edit /usr/local/etc/openldap/slapd.conf and change the index line from something similar to:
index objectClass eq
to:
index objectClass,entryCSN,entryUUID eq
Then add 3 lines:
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100