[Date Prev][Date Next]
Re: sync repl more than one rid?
The ability to use multiple consumer specs in a single database has
never worked in OpenLDAP 2.2 and the feature has been removed in
Also, the sessionlog id (sid) bears no relation to the replica id (rid),
they are two different parameters. In OpenLDAP 2.2 there is no keyword
for configuring the sessionlog id in a syncrepl consumer, which renders
the sessionlog useless. This has been fixed in OpenLDAP 2.3 by removing
the notion of sessionlog IDs; the provider's sessionlog (if enabled) is
automatically used for all requests.
In OpenLDAP 2.3 I think you'll have to use a separate relay database in
order to accomplish what you want. Certainly that will work, anyway.
Ben Booble wrote:
I have set up syncrepl on one of my consumer ldap servers and it was
able to build from the provider ldap server without a problem (ie
didn't have to add ldif to ldap server on consumer with slapcat or
slapadd). Both are running openldap-servers-2.2.23-5mdk.
I have an intermittent problem that occurs. When I want to rebuild my
consumer server I just shutdown ldap, rm -rf /var/lib/ldap/* and
restart. Sometimes it restarts and rebuilds everything and sometimes
it says "DB_NOTFOUND: No matching key/data pair found" and gets no
further. Why is this?
Second I would like to add a second syncrepl rid that queries the same
provider but when I do it says "database already shadowed.". I want it
to replicate different parts of the ldap server and this gives me the
finer control over it (or it would if it didn't error;).
Here is my slapd.conf on my consumer (the way I would like it - but
rid=011 is the one that works fine):
......(below is what I would want to add)......
provider=ldap://192.168.0.160:389 (same 160 and 45 are the same server)
attrs="mail,mailbox, and a lot more"
on the provider i have the sessionlog or sid 011 and 012 (in slapd.conf)
Don’t just search. Find. Check out the new MSN Search!
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support