[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Syncrepl: 3 simple questions
"Torsten Schlabach (Tascel eG)" <tschlabach@tascel.net> writes:
> Hi!
>
> What I would like to understand:
>
> 1. How do I query a master for the cookie?
> 2. How do I query a slave for the coolie?
> 3. How do I query the master in a human readable format for all changes
> based on a cookie which I present?
>
> My apologies if these questions should have been answered by reading the
> documentation; I did not find it there, unfortunately.
>
> I am sure someone who is a bit more into this can just reply with three
> simple ldadpsearch statemenets.
1. Request a provider
ldapsearch -D cn=replicator,o=avci,c=de -w secret \
-H ldap://localhost -b o=avci,c=de -s sub \
-E '!sync=ro/rid=042'
as result all entries are presented and in addtion a control
control: 1.3.6.1.4.1.4203.1.9.1.3 false MIQAAAA5BDRyaWQ9MDQ2LGNzbj0yMDA5MTEwMz
IwMjkwOC4yMzA2MzJaIzAwMDAwMCMwMDAjMDAwMDAwAQH/
the base64 encoded value is the cookie, which may be used to request
changes.
2. Request a consumer
ldapsearch -Y external -ZZ -H ldap://localhost:9004 -b o=avci,c=de \
-s base contextcsn
-Dieter
--
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:8EF7B6C6
53°37'09,95"N
10°08'02,42"E