I have a brand new Mac Mini I have installed the OS X Server app on it.
DNS Settings report no problems.
OpenDirectory will not stay operational. I never even had a chance to add any users. Can't get it do do anything but crash.
I haven't figured out how to restart it, I've followed instructions for resetting everything on the server app and received identical results.
Upon "starting" OpenDirectory it appears to start and then immediately stops.
sudo changeip -checkhostname
Reports no issues.
sudo launchctl unload /System/LIbrary/LaunchDaemons/org.openldap.slapd.plist
Tells me it is unable to unload.
I'm completely lost.
As I mentioned I was never able to do ANYTHING with OpenDirectory, so if there's a way I can wipe and reinstall that'd be great. I have no data to recover or backup.
Best Answer
I had the same problem initially too. But for many months now, though, Open Directory has been working as expected and serves our many users' credentials reliably.
It was only after the following that Open Directory settled down:
If there are any inconsistencies between these, then the Server app just can't make all the assumptions about its identity that it needs to.
If all this sounds simple - we did not find it so.
This was our experience after several failed attempts and several attempts where we thought things were working but Open Directory flaked out. Yours will be different e.g. if your OS X Server is not internet-facing:
An ideal place to start
The perennial advice - that still stands - is to start by running
sudo changeip -checkhostname
(Although, ironically, I don't think
changeip
is there until afer you've installed Server ... so maybe it's only ideal after you've already got things right!)When you can: run
sudo changeip -checkhostname
make sure you get the response:and make sure that
Current HostName
value == the name on your SSL Certificate == the name on the front page of the Server app GUIOpen Ports
Another thing: ensure that your Server can be reached by the ports that it needs. These can be more than you might imagine. I just did this port scan (using the Network Utility on my MacBook) of our Server and you can see what ports it has open to provide its services. See also Apple support page for Well Known Ports