1

I am facing issue with our new LDAP servers as they go down one by one alternatively. When checked for the services it says:

"slapd dead but pid file exists openldap"

but show no service running ps -ea | grep slapd. When the service is restarted, LDAP starts with message

"bdb_db_open: database "dc=root": unclean shutdown detected; attempting recovery.slapd starting" a

nd works perfectly until the issue comes again.

There is nothing in the ldap logs much to investigate as each time it overwrites the logs but i got below error once it had stopped.

slapd[30190]: daemon: bind(7) failed errno=13 (Permission denied)
slapd[30190]: slapd stopped.

I checked the access to ldap user on certificates folder and it has read\write access on it. Unlike others, my LDAP starts with service slapd start on RHEL. Please help,

1

The service was stopped and does not delete the file pid.
Check the file slapd.conf and look for the pidfile variable:

pidfile /var/run/slapd/slapd.pid

Delete it.

rm -f /var/run/slapd/slapd.pid
  • Hi Jose, Thank you for your response. I checked and found the ldap user was not having read permissions on the server certificates but instead it was root. I changed the Ownership of the certificate to ldap and so far the LDAP didnt went down. not sure if the issue is resolved but i'll keep everyone posted. – sandy Mar 22 '16 at 11:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.