Impossible to login with user nor with diradmin in Workgroup Manager
I've encountered a problem while modyfing the certificate for service on a OS X Lion Server.
Network user couldn't log in anymore, Workgroup was returning a : "The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14002 occurred." error and Directory Utility a -2100 error ...
I found on https://discussions.apple.com/thread/1748724?start=0&tstart=0 the following solution that solved my problem :
sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist
sudo /usr/bin/db_recover -h /var/db/openldap/openldap-data
sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist