Hello,
Here is an example of a problem, I use a script to test the contextCSN regularly:
LDAP1 = `cat / etc / ldap / config-dc | suffix grep | cut-d \"-f 2
| xargs-i ldapsearch-LLL-H ldap: / / 10.7.0.12-D "cn = admin, ()"
XXXXXXX-w-x-s base-b () contextCSN 2> / dev / null | grep-v "# 000
#" `
Same principle with ldap2 if contextCSN is the same, return "ok".
And often, I have some problems:
dn: dc = XXXXXX, dc = fr
contextCSN: 20090211133509.490550Z # 000000 # 000000 # 001
contextCSN: 20090120132016.148736Z # 000000 # 000000 # 002
dn: dc = XXXXXX, dc = com
contextCSN: 20090212102723.658506Z # 000000 # 000000 # 001
contextCSN: 20090120145041.933994Z # 000000 # 000000 # 002
###################
dn: dc = XXXXXX, dc = fr
contextCSN: 20090211133509.490550Z # 000000 # 000000 # 001
contextCSN: 20090120132016.148736Z # 000000 # 000000 # 002
dn: dc = XXXX, dc = com
contextCSN: 20090212102657.736926Z # 000000 # 000000 # 001
contextCSN: 20090120145041.933994Z # 000000 # 000000 # 002
####################
Yet, when I test the script with Joćo Alfredo, it returns me an "ok", the entryCSN are identical.
A restart of splapd used to resynchronize the contextcsn.
In contrast, for dc = XXXXXX, dc = fr.
The contextcsn is ok, but I have errors with the entryCSN :|
cat / tmp/masterldap1.full
dn: ou = people, dc = XXXXX, dc = fr
entryCSN: 20080529153849.000000Z # 000000 # 000000 # 000
dn: ou = Users, dc = XXXXX, dc = fr
entryCSN: 20081126190244.000000Z # 000000 # 000000 # 000
####################
cat / tmp/masterldap2.full
dn: ou = people, dc = XXXXXX, dc = fr
entryCSN: 20080529153849Z # 000000 # 000000 # 00
dn: ou = Users, dc = XXXXX, dc = fr
entryCSN: 20081126190244Z # 000000 # 000000 # 00
Are not a bugg?.
####################
database bdb
suffix "dc=XXXXXX,dc=fr"
checkpoint 512 30
rootdn "cn=admin,dc=XXXXXX,dc=fr"
rootpw XXXXXXX
directory "/data/openldap/ldap"
index entryCSN,entryUUID,objectClass,description eq
lastmod on
access to dn.base="" by * read
access to attrs=userPassword
by anonymous auth
by self write
by * none
limits dn.regex="cn=admin,dc=XXXXXX,dc=fr"
time.soft=unlimited
time.hard=unlimited
size.soft=unlimited
size.hard=unlimited
overlay syncprov
syncprov-checkpoint 100 5
syncprov-sessionlog 1000
syncrepl rid=001
provider=ldap://
10.7.0.12
type=refreshAndPersist
retry="60 +"
searchbase="dc=XXXXX,dc=fr"
schemachecking=off
bindmethod=simple
binddn="cn=admin,dc=XXXXXX,dc=fr"
credentials=XXXXX
syncrepl rid=002
provider=ldap://
10.7.0.11
type=refreshAndPersist
retry="60 +"
searchbase="dc=XXXXX,dc=fr"
schemachecking=off
bindmethod=simple
binddn="cn=admin,dc=XXXXX,dc=fr"
credentials=XXXXXX
mirrormode on
####################
------
Arteta