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
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.







Lothar
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.