Friday, December 22, 2006

LDAP Replica

Master LDAP Server:
/etc/openldap/slapd.conf

access to attrs=userpassword
by self write
by * auth

access to *
by * read

suffix "dc=example,dc=com"
rootdn "cn=root,dc=example,dc=com"
rootpw 12345

# Replicas of this database
replogfile /var/lib/ldap/openldap-master-replog

replica host=slave.example.com:389
suffix="dc=example,dc=com"
binddn="cn=admin,dc=example,dc=com"
credentials=54321
bindmethod=simple


Slave LDAP Server:
suffix "dc=example,dc=com"
rootdn "cn=admin,dc=example,dc=com"
rootpw 54321

updatedn "cn=admin,dc=example,dc=com"
updateref ldap://master.example.com/

No comments: