OpenLDAP 2.4.40
Syncrepl configuration:
olcSyncUseSubentry: FALSE
olcSyncrepl: {0}rid=101 provider=ldap://server1 searchbase="o=xxx,dc=yyy,
dc=zzz" type=refreshOnly bindmethod=sasl saslmech=EXTERNAL
tls_cert=/etc/openldap/certs/xxxxx.crt tls_key=/etc/openldap/certs/xxxxx.key
tls_cacert=/etc/openldap/certs/cacert.pem interval=00:00:00:10
retry="5 10 10 10 30 +" timeout=1 starttls=critical
olcSyncrepl: {1}rid=102 provider=ldap://server2 searchbase="o=xxx,dc=yyyy,
dc=zzz" type=refreshOnly bindmethod=sasl saslmech=EXTERNAL
tls_cert=/etc/openldap/certs/ldapadmin.crt tls_key=/etc/openldap/certs/xxxxx.key
tls_cacert=/etc/openldap/certs/cacert.pem interval=00:00:00:10
retry="5 10 10 10 30 +" timeout=1 starttls=critical
olcMirrorMode: TRUE
BTW, I just tried addinging:
dn: olcOverly={3}syncprov,olcDatabase={2},cn=config
changetype: modify
replace: olcSpCheckpoint
olcSpCheckpoint: 1024
-
add: olcSpSessionlog
olcSpSessionlog: 1024
-
add: olcSpReloadhint
olcSpReloadhint: TRUE
And that seemed to fix it! Maybe it was just the checkpoint being "1 1" that was messing it up? Or maybe I needed the session log. I realize that this is the deprecated approach. I probably put in cn=changelog instead if there's a good reason to do so.
-Frank