Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you rebuild the LDAP index on Fedora?

I thought the command was slapindex, but I get the error:

bdb_db_open: database "dc=mydomain,dc=com": database already in use.
backend_startup_one (type=bdb, suffix="dc=mydomain,dc=com"): bi_db_open failed! (-1)
slap_startup failed
share|improve this question
up vote 0 down vote accepted

Before running slapindex you need to stop the LDAP service. The startup script for LDAP may already run slapindex as part of the startup sequence. If so, all you need to do is stop and start the LDAP service.

share|improve this answer
Would that command be sudo service slapd restart? – Cerin Mar 23 '11 at 14:31
@Chris: That is likely the command. If not you will be notified. I still use /etc/init.d/slapd restart. It should tell you if the startup has been migrated to the newer form. You can use the ls -l command to see if the indexes get rebuilt. If they don't you will need to stop the service, rebuild the indexes, and then start the service. – BillThor Mar 23 '11 at 14:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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