[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: N-Way replication



You appear to be missing the serverID value. N-Way MultiMaster needs serverID to identify who is who. Otherwise, your method looks okay as far as I can tell.

See http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master


On Aug 5, 2008, at 10:29 AM, Alexander Kriventsov wrote:

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.




++++++++++++++++++++++++++++++++++++++ Chris G. Sellers | Internet Engineer | NITLE 734.661.2318 | chris.sellers@nitle.org Jabber: csellers@nitle.org | AIM: imthewherd