Univention Bugzilla – Bug 35170
replace replication.py initialization with slapadd
Last modified: 2023-03-25 06:53:48 CET
We need a way to replace the replication.py initialization (in the directory listener) with a simple slapadd.
Created attachment 5965 [details] fake_replication_init.patch PoC (1) added -P (initialize handlers only, but not from scratch) to listener, see bug #35165 (2) added fake replication.py initialization to join script 03univention-directory-listener.inst If the system is not a DC master, the new join script fakes the replication.py initialization (echo 3 > /var/lib/univention-directory-listener/handlers/replication) gets notifier and ldif from master (ldap paged results search), updates the local ldap with the ldif file (slapdd), sets the notifier_id and then the listener is started with -P (instead of -i) for the initialization phase. Optinal, the notifier_id, the ldif file and the listener cache file can be pre-configured. listener/join/notifier/id -> notifier id listener/join/ldif/file -> ldif file to use (instead of ldap search) listener/join/cache/file -> listener cache (replaces /var/lib/univention-directory-listener/cache.db)
*** This bug has been marked as a duplicate of bug 40514 ***