Today I had a lot of problems with internet access, mainly due to PCCW’s appalling broadband service on this wretched little island so I decided to shut all my computers down together with the Airport Extreme and broadband router, then restart everything to hopefully get a new IP address. When I restarted the server I noticed at the login screen that network accounts were no longer available but nevertheless was able to login. I then checked the MacBook Pro and found that I wasn’t connected to a Network Account Server in Login Options and couldn’t see any network server. Then I checked on the server and found that Workgroup Manager couldn’t login to the LDAP server. Then checking Server Admin I found that Open Directory wasn’t running and would not start. Needless to say I had never backed up the OD in Server Admin. I repaired permissions, restarted and nothing had changed. Then I restarted from my Carbon Copy Cloner backup from yesterday and found everything was sweet. So from Server Admin I made a backup of the OD database and then restarted from my regular Server HD and restored this backup of OD which then worked fine. My Network Account Server was available again and I had no problems creating new users in Server and Workgroup Manager. I’m assuming that Open Directory is fixed. However as a precaution I repaired permissions again and this was the result:
Repairing permissions for “Macintosh HD”
Permissions differ on “private/etc/apache2/httpd.conf”; should be -r–r–r– ; they are -rw-r–r– .
ACL found but not expected on “Users”
Permissions differ on “private/var/db/openldap/openldap-data”; should be drwxr-xr-x ; they are drwx—— .
Permissions repair complete
It seems that the restored backup of OD had some problems but were fixed. Thanks to the ability of Server Admin to make a decent backup of Open Directory.
My question is now how will I make a backup of Open Directory under Mountain Lion server as there is no Server Admin?