Hi All,
I might as well start easing back into the OpenLDAP Weekly Newsletter by doing some "OpenLDAP Quick Tips". Here's the first one.
"Check that the synchronisation state indicators of any slaves or masters are the same":
CODE:
[ghenry@suretec ~]$ ldapsearch -x -LLL -H ldap[?]://master:389 -s base -b 'dc=suretecsystems,dc=com' contextCSN[?]
dn: dc=suretecsystems,dc=com
contextCSN: 20081025222436.822813Z&000000;000#000000
[ghenry@suretec ~]$ ldapsearch -x -LLL -H ldap://slave:389 -s base -b 'dc=suretecsystems,dc=com' contextCSN
dn: dc=suretecsystems,dc=com
contextCSN: 20081025222436.822813Z&000000;000#000000
If they are the same, then replication has finished, otherwise replication has not finished or has failed.
For more technical detail, please see
http://www.openldap.org/doc/admin24/replication.html#LDAP[?]%20Sync%20Replication