[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Syncrepl: 3 simple questions
On Thu, 5 Nov 2009, Torsten Schlabach (Tascel eG) wrote:
1. How do I query a master for the cookie?
2. How do I query a slave for the coolie?
$ ldapsearch -xLLLH ldap://localhost/ -s base -b "dc=rutgers,dc=edu" contextCSN
dn: dc=rutgers,dc=edu
contextCSN: 20070613170816.000000Z#000000#000#000000
Works on either a slave or a master.
3. How do I query the master in a human readable format for all changes
based on a cookie which I present?
See -E sync option, described in ldapsearch(1) man page, for the syntax
(it depends on what method you desire, for example you must choose
refreshOnly/refreshAndPersist). One completed example is at
http://www.openldap.org/lists/openldap-technical/200909/msg00202.html
(not sure if you'll consider it human-readable, but that's a whole
different story...it's plain text output, at least?)