[Date Prev][Date Next]
(ITS#6872) syncprov performs unnecessary refreshes when replicating a subtree.
- To: openldap-its@OpenLDAP.org
- Subject: (ITS#6872) syncprov performs unnecessary refreshes when replicating a subtree.
- From: email@example.com
- Date: Fri, 18 Mar 2011 20:48:02 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Full_Name: Chris Mikkelson
Submission from: (NULL) (184.108.40.206)
I have a multi-master LDAP master, with slaves replicating different subtrees of
the directory. If a slave disconnects, a change is made on the master, and the
slave reconnects, the master sends the complete subtree rather than the changed
entries or a NEW_COOKIE message. Slaves which replicate the complete directory
work fine -- only the changed entries are sent.
The following script recreates this:
(This script assumes that schemas are in /usr/local/etc/openldap/schema and the
slapd binary is in /usr/local/libexec. Both are default for the FreeBSD port of
OpenLDAP, but may need to be modified for other environments.)
The script output is here:
Note that the first ldapsearch with base dc=qwest,dc=net receives just the
changed entry, but the second search with the same cookie and base
ou=accounts,dc=qwest,dc=net receives the complete ou=accounts subtree.