Symptoms
LDAP server can be started, but it is not listening on port 389 and is not working, slapcat hangs too.Cause
LDAP back-end database is corrupted.Resolution
Use slapd_db_recover to recover the database, for example:[root@psaldap ldap]# slapd_db_recover -v -h /var/lib/ldap
db_recover: Finding last valid log LSN: file: 1 offset 263805
db_recover: Recovery starting from [1][261683]
db_recover: Recovery complete at Thu Jul 17 08:29:23 2008
db_recover: Maximum transaction ID 80000175 Recovery checkpoint [1][264861]WARNING: Always backup database files before working the database, for standart install files are located in
/var/lib/ldapKeywords: ldap qmail slapd