Dmitriy Kirhlarov a écrit :
Julien Garnier wrote:Dmitriy Kirhlarov a écrit :Julien Garnier wrote: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 baseTry:ldapsearch -x -h master -b "ou=people,dc=compagnie,dc=com" -s base -LLL '' +No, it's the same, nothings returncontextCSN stored in root object. ldapsearch -x -h master -b "dc=com" -s base -LLL '' + WBR. Dmitriy
My root object is "ou=people,dc=compagine,dc=fr" my slapd.conf : ################################################### allow bind_v2 include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/cnrs.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args loglevel 1 modulepath /usr/lib/ldap moduleload back_bdb sizelimit 50000 tool-threads 2 backend bdb checkpoint 512 30 database bdb suffix "ou=People,dc=compagnie,dc=com" rootdn "cn=admin,ou=People,dc=compagnie,dc=com" rootpw "secret" directory "/var/lib/ldap" dbconfig set_cachesize 0 2097152 0 dbconfig set_lk_max_objects 1500 dbconfig set_lk_max_locks 1500 dbconfig set_lk_max_lockers 1500index objectClass eq
index ou,cn,mail,surname,givenname,departmentNumber eq,pres,sub
index entryCSN,entryUUID,contextCSN eq,pres
lastmod on
#id du client (numero DR)
syncrepl rid=013
provider=ldap://master:389
searchbase="ou=People,dc=compagnie,dc=com"
type=refreshAndPersist
interval=00:00:15:00
scop=sub
filter=(cnrsDelegation=DR13*)
schemachecking=on
updatedn="cn=admin,ou=people,dc=compagnie,dc=com"
bindmethod=simple
binddn="cn=sync-dr13,ou=people,dc=compagnie,dc=com"
credentials="secret"
access to attrs=userPassword,shadowLastChange
by dn="cn=admin,ou=People,dc=compagnie,dc=com" write
by anonymous auth
by self write
by * none
access to dn.base="" by * read
access to *
by dn="cn=admin,ou=People,dc=compagnie,dc=com" write
by * read
#####################################################
I just reinstall all my slave server and resynchronize all the database
and it's the same :
It's OK when I search the master server but doesn't work for the slave
server.
What I've done is : reinstall linux install openldap from aptitude (slapd 2.3.30 (Mar 9 2007 05:43:02)) copy paste my config file to /etc/ldap/slapd.conf starting server and nothing else. search on base doesn't retrn any results : Thanks for Your help Julien
smime.p7s
Description: S/MIME Cryptographic Signature
