Hello,

I have two openldap servers, and have configured the master-slave 
synchronization, but have a problem:

When an entry in master server is changed it is automatically changed in the 
slave server.
But, when an entry in slave server is changed it is not automatically changed 
in the master server.

In the slave server slapd.conf config file, I've set up “updateref 
ldap://192.168.100.11:389“ , the 192.168.100.11 is my master server.

The following is my configuration.
Master Configuration:
allow bind_v2
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args
access to *
        by * write
database        bdb
suffix          "dc=domain,dc=com"
rootdn          "cn=root,dc=domain,dc=com"
overlay ppolicy
rootpw          {SSHA}DyNIn6rweGRnQP0ntGaZxynMllSA3/w4
directory       /var/lib/ldap
index objectClass                       eq,pres
index ou,cn,mail,surname,givenname      eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
index nisMapName,nisMapEntry            eq,pres,sub
replogfile /var/lib/ldap/openldap-master-replog
loglevel 4095
replica host=192.168.70.15:389
        binddn="cn=sa,dc=domain,dc=com"
        bindmethod=simple credentials=miao3p


Slave Configuration:
allow bind_v2
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args
access to *
        by * write
database        bdb
suffix          "dc=domain,dc=com"
rootdn          "cn=root,dc=domain,dc=com"
overlay ppolicy
rootpw          {SSHA}sgBwprgmRciOEGTLjE5K9J22msm+U9NW
directory       /var/lib/ldap
index objectClass                       eq,pres
index ou,cn,mail,surname,givenname      eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
index nisMapName,nisMapEntry            eq,pres,sub
updatedn "cn=sa,dc=domain,dc=com"
updateref ldap://192.168.100.11:389

Any ideas? Thank you very much. 




Tian Zhiying

Reply via email to