Re: Syncrepl: 3 simple questions

Aaron Richton <[email protected]>
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
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?)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.