Bit of a head scratcher here. A few days before half term we had to shut down all servers due to air con failing. For reasons i'm unaware of our mac server was not shutdown before the power switch was hit. The next morning our macs would not let anybody log in, not even admins, so after a few restarts of the server this seemed to rectify itself. All was working right up until easter, so back I came after a 2 week holiday to find that nobody can log into our macs yet again, only this time admin users are able to log in, but not students/teaching staff etc. The strange thing is our ODadmin account seems to have just been wiped off the face of the earth, the home directory for it still exists, but it doesn't now show up in Sys Prefs > Users. Can't log in to it either, which means I also cannot log into WGM and authenticate to LDAP.. So I can't do much at the moment! I have attached the error WGM throws at me when trying to authenticate with the correct credentials to LDAP:
Looks like your Open Directory DB has corrupted. You need to unload slapd, run db_recover and then load slapd. If your unsure how to do this, or a bit worried of making it worse it might be worth getting an apple solutions expert or consultant, like me ;-) to fix it for you.
Hi JR-PCS, thanks for the reply. Are there any guides out there on doing this? I'm not really all that worried about making it worse, as it currently can't get that much worse as nothing is working at the moment!
you are running the recovery tool (db_recover). You want slapd to be unloaded when you run the db_recover, it sounded like you loaded slapd first. However it seems like its not finding your database.
Could you try running the three commands in the correct order again and take a screenshot of terminal when running those commands. Also go to Server Admin > Open Directory > Logs and give me a screenshot of the LDAP log.
Have you ever taken an archive of Open Directory? If you haven't and don't have a server backup to use as a restore you may have no choice but to change your OD server to standalone, restart and then promote to OD master. This will give you a blank OD, which you will need to setup again.
Glad I could help. But your school might want to consider a backup plan, in case this ever happens again!
What do you recommend for backup? I currently backup our xserve via rsync and take regular archives of the Open Directory DB. Planning to use Carbon Copy Cloner & script Open Directory DB backup before CCC backup.