I can see which updates are being handled by OpenLDAP’s sync
replication engine by looking at the logs it produces, but I wanted a concise view of
the distinguished names (DN) of the objects being updated, if possible
Net::LDAPapi implments a refreshAndPersist syncrepl consumer which I can
use to watch the ADD, MODIFY and DELETE operations being handled by the slapd
I’m connecting to. Here’s how i do it:
The cookie file must exist prior to start (touch cookie.dat), and it is updated by
Net::LDAPapi with the Change Sequence Number (CSN) of the last change it handled.