Friday, March 23, 2007

Re-index your ladp

Sometimes it looks like your ldap db is corrupted.
In that case you can try to re-index your ladp

1. Stop slapd with

sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.xml

2. Wait a minute to give slapd time to stop. You can see it in the OD status pane of Server Admin

3. Re-index your ladp db with

sudo slapindex -v -d 1

(I like the debug output just to see what it is doing.)

4. Start slapd back up with

sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.xml

See if that helps.

2 comments:

Unknown said...

Thank you!
One addition, In Snow Leopard, the LDAP LaunchDeamon config is renamed to /System/Library/LaunchDaemons/org.openldap.slapd.plist

mrumanovic said...

Thank you very much, it helped me really a lot !!
Miro