If you bump into the following message on your box.
Checking configuration files for slapd:
bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Recovery skipped in read-only mode.
Run manual recovery if errors are encountered.
Change the ownership of /var/lib/ldap/DB_CONFIG to be owned by the user ldap and group ldap, then restart ldap.
chown ldap:ldap /var/lib/ldap/DB_CONFIG
service ldap restart
If you do have a issue with your database, you can try to repair it.
/usr/sbin/slapd_db_recover -v -h /var/lib/ldap
Leave a comment