LDAP server can be started, however it does not listen to port 389 and does not actually work, the 'slapcat' utility being run on LDAP server hangs too.
The error like this may be observed trying to restart LDAP service:
# service ldap restart Stopping slapd: [ OK ] 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. config file testing succeeded [ OK ] Starting slapd: [ OK ]
Another symptom of the problem is that POA tasks fail with the error message 'Syncing Internal IP Resolver Database with external data source', the example is below:
Synchronization failed. LDAP IP '192.168.45.16'. Internal IP Resolver's service returned error: Can't contact LDAP server. IP '192.168.045.044', host 'www.customer.com', operation delete.
LDAP back-end database is corrupted.
Use the slapd_db_recover utility on the LDAP server to recover the database, for example:
# /etc/init.d/ldap stop # mkdir /root/ldap_backup # cp -a /var/lib/ldap/* /root/ldap_backup/ # slapd_db_recover -v -h /var/lib/ldap db_recover: Finding last valid log LSN: file: 1 offset 263805 db_recover: Recovery starting from  db_recover: Recovery complete at Thu Jul 17 08:29:23 2008 db_recover: Maximum transaction ID 80000175 Recovery checkpoint  # /etc/init.d/ldap start
WARNING: Always backup database files before working with the database, for standard installation LDAP database files are located in the /var/lib/ldap folder.