Master

Configure Master

Add the following to the slapd.conf:

replica uri=ldap://slave.local:389 binddn="cn=admin,dc=local" bindmethod=simple credentials=secret

replogfile      /var/lib/ldap/replog

Replication Service on Master

Slave

This package includes:

Usage Notes

To create a startup item that starts slapd after reboot just run as root daemonic enable slapd. To remove the slapd startup item just run as root daemonic remove slapd.

Configure slave

updatedn        cn=admin,dc=local
updateref       ldap://master.local

Initial Slave config from Master

$ sudo slapcat -l master.ldif
$ sudo rm -rf /sw/var/openldap-data/*
$ sudo slapadd -c -l master.ldif
$sudo slapadd -d -1 -l master.ldif

Maybe use the DB_CONFIG file from master and copy it to your ldap dir /sw/var/openldap-data.

Start Slave on MacOSX

$ sudo daemonic enable slapd
$ sudo /Library/StartupItems/daemonic-slapd/daemonic-slapd start

Start order for master and slave

  1. slapd (master)
  2. slapd (slave)
  3. slurpd (master)

OpenLDAP client config on Slave

BASE    dc=local
URI     ldap://localhost ldap://master.local

Fink Notes

openldap23-2.3.40-1: LDAP directory services implementation
 OpenLDAP is an open source implementation of the Lightweight Directory
 Access Protocol. The suite includes:
 *  slapd - stand-alone LDAP server
 *  slurpd - stand-alone LDAP replication server
 *  libraries implementing the LDAP protocol, and
 *  utilities, tools, and sample clients.
 .
 Usage Notes:
  To create a startup item that starts slapd after reboot just run as root
 'daemonic enable slapd'. To remove the slapd startup item just run as root
 'daemonic remove slapd'.
 .
 Web site: http://www.openldap.org