Problem: Empty failed ldif could not be removed

Problem:

Empty failed.ldif could not be removed.
For example on a slave you see in
/var/log/univention/listener.log
that you have a failed.ldif

Investigation:

You troubleshoot with

but the failed.ldif is empty and pops up again after removing.

Solution:

Switch to the mdb backend for ldap, if you are still using the bdb backend.
ucr get ldap/database/type
http://docs.software-univention.de/performance-guide-5.0.html#slapd:bdb

/etc/init.d/slapd stop
slapcat -l ldif
mkdir /var/lib/univention-ldap/ldap.BACKUP
mv /var/lib/univention-ldap/ldap/* /var/lib/univention-ldap/ldap.BACKUP
ucr set ldap/database/type=mdb
slapadd -l ldif
systemctl daemon-reload
/etc/init.d/slapd start
1 Like
Mastodon