Problem: Empty failed ldif could not be removed


Empty failed.ldif could not be removed.
For example on a slave you see in
that you have a failed.ldif


You troubleshoot with

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


Switch to the mdb backend for ldap, if you are still using the bdb backend.
ucr get ldap/database/type

/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