Full_Name: Frank Offermanns
Version: 2.4.25 and 2.4.41
OS: Windows
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (217.7.149.50)


Hello,
when I have two ldapserver (master/slave with delta syncrepl) and do insert on
the master while the slave is down and then start the slave, only some entries
get replicated. 
This problem is reproducable (every time). I did my test with a build of 2.4.25
and mingw and with 2.4.41 build with visual studio. The version 2.4.25 is 32 bit
and the 2.4.41 is 64 bit. Operation system is Windows. Version 2.4.25 runs with
hdb, version 2.4.41 with lmdb.

Here is a description in detail:
Master and slave are fully synchronized. Then I stop the slave. Add 100 users to
the master LDAP. I wait a few seconds, then I start the service at the slave. 
Now only some users get replicated. 

Here is my configuration of master (of the hdb try):
######################################################################
database        config
rootdn          cn=config
rootpw          secret

# Accesslog database definitions
database hdb
suffix cn=accesslog
checkpoint      1024    5
cachesize       10000
directory "c:/mydir/accessdata"
dbconfig set_cachesize  0       30000000        1
dbconfig set_flags      DB_LOG_AUTOREMOVE
dbconfig set_lg_regionmax       1048576
dbconfig set_lg_max     10485760
dbconfig set_lg_bsize   2097152
rootdn cn=accesslog
index default eq
index entryCSN,objectClass,reqEnd,reqResult,reqStart

overlay syncprov
syncprov-nopresent TRUE
syncprov-reloadhint TRUE
limits dn.exact="cn=Replicator,ou=admins,o=caesar" time.soft=unlimited
time.hard=unlimited size.soft=unlimited size.hard=unlimited

database hdb
suffix "o=caesar"
checkpoint      1024    5
cachesize       10000
idlcachesize    30000
rootdn "cn=Administrator,o=caesar"
rootpw          secret
directory       "c:/mydir/data"
dbconfig set_cachesize  0       100000000       1
dbconfig set_flags      DB_LOG_AUTOREMOVE
dbconfig set_lg_regionmax       1048576
dbconfig set_lg_max     10485760
dbconfig set_lg_bsize   2097152

# syncprov specific indexing
index   sn              pres,eq
...
index   objectClass     eq
  
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 10000

overlay accesslog
logdb cn=accesslog
logops writes
logsuccess TRUE
logpurge 07+00:00 01+00:00

sizelimit size.soft=100 size.hard=1000 size.prtotal=unlimited
limits dn.exact="cn=Replicator,ou=admins,o=caesar" time.soft=unlimited
time.hard=unlimited size.soft=unlimited size.hard=unlimited

Here is my config of the slave (of the hdb test):
access to * by dn.one="ou=Admins,o=caesar" write
        by anonymous auth

####################################################################"3%0
database        config
rootdn          cn=config
rootpw          secret

database hdb
suffix "o=caesar"
checkpoint      1024    5
cachesize       10000
idlcachesize    30000
rootdn "cn=Administrator,o=caesar"
rootpw          secret
directory       "C:/mydir/data"
dbconfig set_cachesize  0       100000000       1
dbconfig set_flags      DB_LOG_AUTOREMOVE
dbconfig set_lg_regionmax       1048576
dbconfig set_lg_max     10485760
dbconfig set_lg_bsize   2097152

# syncprov specific indexing
index   sn              pres,eq
...
index   objectClass     eq
  
sizelimit size.soft=100 size.hard=1000 size.prtotal=unlimited
# Let the replica DN have limitless searches
limits dn.exact="cn=Replicator,ou=admins,o=caesar" time.soft=unlimited
time.hard=unlimited size.soft=unlimited size.hard=unlimited

syncrepl       rid=001
               provider="ldap://masterserver.mydomain";
               searchbase="o=caesar"
               type=refreshAndPersist
               retry="5 3 15 +"
               binddn="cn=Replicator,ou=admins,o=caesar"
               bindmethod=simple
               credtitials="secret"
               logbase="cn=accesslog"
               logfilter="(&(objectClass=auditWriteObject)(reqResult=0))"
               schemachecking=on
               syncdata=accesslog














Reply via email to