Posted in LDAP Linux

openldap not listening on port 389

September 18, 2006 - 1 comment

For some reason openldap stopped running and listening on port 389 after our server had a problem…

The database files (BDB type) were actually corrupted…

This is how to fix the issue and recover the DB :

- install db4-utils (under RedHat)
- cd /var/lib/ldap (or whatever directory in which the DB files are located)
- /etc/init.d/ldap stop
- run /usr/sbin/slapd_db_recover in the directory
- /etc/init.d/ldap start

The server was up again after fixing the DB

Comments

Lothar

September 25, 2006 - 0:47

The same thing happened to me several times after power-failures ( yeah , I know , get a UPS ;-) ). Both FC5 and Centos need slapindex or db_recover or both to restart the slapd. The old server, running RH9 and a self compiled slapd never had any problems whatsoever restarting . I haven\’t had time yet to investigate the cause of this problem though.

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.