Discussion:
Synchronization/replication and testing with ldapsearch
(too old to reply)
Rebecka Gulliksson
2015-11-09 15:28:44 UTC
Permalink
Hi!

I’m trying to setup an instance of slapd that supports RFC4533 (Content
Synchronization Operation) for use with a consumer that is *not* another
slapd instance.
So right now I want to test my slapd instance with ‘ldapsearch' instead of
in an master-slave setup.

I’m on Mac OS X with the following in my slapd.conf:

overlay syncprov
syncprov-checkpoint 100 1
syncprov-sessionlog 100

Then I use ldapsearch

ldapsearch -x -h localhost -Esync=ro

but I get no syncCookie.
Essentially I want to achieve what has been asked (but not answered) here:
http://www.openldap.org/lists/openldap-software/200907/msg00045.html.

Is there anything else I need to add to slapd.conf or is my ldapsearch
command missing something?
Any pointers to documentation of how to set it up?


Regards,
---
Rebecka Gulliksson
ICT Services and System Development (ITS)
Umeå University
SE-901 87 Umeå, Sweden
***@umu
Quanah Gibson-Mount
2015-11-09 19:33:45 UTC
Permalink
Content preview: --On Monday, November 09, 2015 3:28 PM +0000 Rebecka Gulliksson
<***@umu.se> wrote: > Hi! > > I'm trying to setup an instance
of slapd that supports RFC4533 (Content > Synchronization Operation) for
use with a consumer that is *not* another > slapd instance. > So right now
I want to test my slapd instance with 'ldapsearch' instead > of in an master-slave
setup. > > I'm on Mac OS X with the following in my slapd.conf: > > overlay
syncprov > syncprov-checkpoint 100 1 > syncprov-sessionlog 100 > > Then I
use ldapsearch > > ldapsearch -x -h localhost -Esync=ro > > but I get no
syncCookie. > Essentially I want to achieve what has been asked (but not answered)
here: > http://www.openldap.org/lists/openldap-software/200907/msg00045.html.
Post by Rebecka Gulliksson
Is there anything else I need to add to slapd.conf or is my ldapsearch
command missing something? > Any pointers to documentation of how to set
it up? [...]

Content analysis details: (-4.3 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium
trust
[162.209.122.174 listed in list.dnswl.org]
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: openldap.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature

--On Monday, November 09, 2015 3:28 PM +0000 Rebecka Gulliksson
Hi!
I'm trying to setup an instance of slapd that supports RFC4533 (Content
Synchronization Operation) for use with a consumer that is *not* another
slapd instance.
So right now I want to test my slapd instance with 'ldapsearch' instead
of in an master-slave setup.
overlay syncprov
syncprov-checkpoint 100 1
syncprov-sessionlog 100
Then I use ldapsearch
ldapsearch -x -h localhost -Esync=ro
but I get no syncCookie.
http://www.openldap.org/lists/openldap-software/200907/msg00045.html.
Is there anything else I need to add to slapd.conf or is my ldapsearch
command missing something?
Any pointers to documentation of how to set it up?
I'd suggest you use the Net::LDAPapi perl module, and read the
documentation, which gives an example of a sync client and how to test with
it.

--Quanah



--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Rebecka Gulliksson
2015-11-10 04:40:24 UTC
Permalink
Thanks a lot!
The example from the Net::LDAPapi perl module
(http://search.cpan.org/dist/perl-ldap/lib/Net/LDAP/Control/SyncRequest.pm)
works flawlessly with the syncprov overlay.

---
Rebecka Gulliksson
ICT Services and System Development (ITS)
Umeå University
SE-901 87 Umeå, Sweden
***@umu.se
www.its.umu.se
Post by Quanah Gibson-Mount
--On Monday, November 09, 2015 3:28 PM +0000 Rebecka Gulliksson
Hi!
I'm trying to setup an instance of slapd that supports RFC4533 (Content
Synchronization Operation) for use with a consumer that is *not* another
slapd instance.
So right now I want to test my slapd instance with 'ldapsearch' instead
of in an master-slave setup.
overlay syncprov
syncprov-checkpoint 100 1
syncprov-sessionlog 100
Then I use ldapsearch
ldapsearch -x -h localhost -Esync=ro
but I get no syncCookie.
http://www.openldap.org/lists/openldap-software/200907/msg00045.html.
Is there anything else I need to add to slapd.conf or is my ldapsearch
command missing something?
Any pointers to documentation of how to set it up?
I'd suggest you use the Net::LDAPapi perl module, and read the
documentation, which gives an example of a sync client and how to test with
it.
--Quanah
--
Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open sou
Loading...