Hi,I was looking for a solution to monitor syncrepl between two server and find that I need to compare contextCSN on the two server.
The problem is that entryCSN doesn't exist on my slave server :
On the master (don't know openldap ver):# ldapsearch -x -h master -b "ou=people,dc=compagnie,dc=com" -s base ContextCSN
give me : # extended LDIF # # LDAPv3 # base <ou=people,dc=compagnie,dc=com> with scope baseObject # filter: (objectclass=*) # requesting: ContextCSN # # People, compagnie.com dn: ou=people,dc=compagnie,dc=com contextCSN: 20080305145635Z#000000#00#000000 # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 On the slave (openldap 2.4.8):# ldapsearch -x -h slave -b "ou=people,dc=compagnie,dc=com" -s base ContextCSN
give me :
# extended LDIF
#
# LDAPv3
# base <ou=people,dc=compagnie,dc=com> with scope baseObject
# filter: (objectclass=*)
# requesting: ContextCSN
#
# search result
search: 2
result: 0 Success
# numResponses: 1
At startup on the slave, I have this log :
bdb_modify: ou=People,dc=compagnie,dc=com
bdb_dn2entry("ou=People,dc=compagnie,dc=com")
bdb_modify_internal: 0x00000001: ou=People,dc=compagnie,dc=com
<= acl_access_allowed: granted to database root
bdb_modify_internal: delete contextCSN
bdb_modify_internal: 16 modify/delete: contextCSN: no such value
bdb_modify: modify failed (16)
send_ldap_result: conn=-1 op=0 p=0
send_ldap_result: err=16 matched="" text="modify/delete: contextCSN: no
such value"
null_callback : error code 0x10 syncrepl_updateCookie: rid=013 be_modify failed (16) ldap_msgfree ldap_result ld 0x832ca48 msgid 2 wait4msg ld 0x832ca48 msgid 2 (timeout 0 usec) wait4msg continue ld 0x832ca48 msgid 2 all 0 ** ld 0x832ca48 Connections: * host: master port: 389 (default) refcnt: 2 status: Connected last used: Wed Mar 5 14:53:45 2008 I don't understand what append ... Thanks for your help Julien
smime.p7s
Description: S/MIME Cryptographic Signature
