Hi all,
I'm using openldap 2.4.19 with 1 provider and consumer. Everything works fine with syncrepl setup. However, when changed to delta syncrepl, most of the updates can't be updated on consumer. However,when I do ldapsearch from consumer to provider using same binddn and search filter for accesslog content as defined in the syncrepl statement, access log entries can be retrived.
Here comes my configuration files. Would anyone please help? Sorry for newbie question. Thanks a lot.
ST Wong
Consumer:
------------------------- cut here
-------------------------------
syncrepl rid=005
provider=ldap://provider1.my.com
bindmethod=simple
binddn="cn=replicator,dc=my,dc=com"
credentials="mysecret"
retry="60 +"
searchbase="dc=my,dc=com"
schemachecking=off
type=refreshAndPersist
interval=00:00:00:05
starttls=yes
tls_reqcert=never
tls_cacert=/etc/pki/tls/certs/cacert.pem
logbase="cn=accesslog"
<----
logfilter="(&(objectClass=auditWriteObject)(reqResult=0))"
<---- replication fails after
adding these lines.
syncdata=accesslog
<----
------------------------- cut here
-------------------------------
Provider:
------------------------- cut here
-------------------------------
database bdb
suffix
cn=accesslog
directory
/usr/local/var/openldap-accesslog
rootdn
cn=accesslog
index default
eq
index
entryUUID,entryCSN,objectClass,reqEnd,reqResult,reqStart
limits dn.exact="cn=replicator,dc=my,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited
overlay syncprov
syncprov-reloadhint
TRUE
syncprov-nopresent TRUE
....
database bdb
suffix
"dc=my,dc=com"
rootdn
"cn=Manager,dc=my,dc=com"
rootpw
mysecret
directory
/usr/local/var/openldap-data
index
entryCSN,entryUUID eq
index
contextCSN
eq
index objectClass eq
overlay syncprov
syncprov-checkpoint 100
10
overlay accesslog
logdb cn=accesslog
logops writes
logsuccess TRUE
logpurge 01+00:00
01+00:00
------------------------- cut here
-------------------------------