dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=ldap://ldap1 binddn="cn=config"
bindmethod=simple
credentials=SECRET searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=1
olcSyncRepl: rid=002 provider=ldap://ldap2 binddn="cn=config"
bindmethod=simple
credentials=SECRET searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=1
-
add: olcMirrorMode
olcMirrorMode: TRUE
EOF
#slapcat -n 0 -l cn=config.ldif
And after that I copied cn=config.ldif to ldap2, and did
#slapadd -F /usr/local/etc/openldap/slapd.d/ -n 0 -l cn=config.ldif
#chown -R ldap /usr/local/etc/openldap/slapd.d/*
#/usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d -u ldap
-g ldap -d Sync -h "ldap://"
When I did changes in cn=config in ldap1 replication works fine, but
if I did it in ldap2 replication doesn't work.
On console where I started slapd I don't see any tries to do
replication.