Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
1  
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
add comment

Your Answer

 
discard

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.