2

I had DNS trouble which was causing delays for Open Directory users logging in from the GUI on their macs.

I've fixed the DNS problems and the delay still remains.

Is there a way to restart, or start/stop, the Open Directory service (or just the Kerberos part) without restarting the server?

Thanks!!

evan
  • 103
  • 2
  • 5

2 Answers2

2

You need to check status of your OD using changeip command.

$ sudo changeip -checkhostname

If it reports any problem, backup your OD using Server Admin and follow the result from the command above

BobC
  • 432
  • 4
  • 9
2

To stop/start Open Directory:

sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist
sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist

To stop/start Kerberos:

sudo launchctl unload /System/Library/LaunchDaemons/edu.mit.Kerberos.kadmind.plist
sudo launchctl unload /System/Library/LaunchDaemons/edu.mit.Kerberos.krb5kdc.plist
sudo launchctl load /System/Library/LaunchDaemons/edu.mit.Kerberos.kadmind.plist
sudo launchctl load /System/Library/LaunchDaemons/edu.mit.Kerberos.krb5kdc.plist

Note these are 10.6.x specific commands. They're slightly different for versions above and below.

jaydisc
  • 489
  • 1
  • 7
  • 19
  • I get "No such file or directory" in 10.13 :-( – Mehdi LAMRANI Sep 19 '18 at 15:17
  • Yeah, this process isn't supported on current versions (as per the the last line in my post). You can use "serveradmin stop/start dirserv" if you want to stop/start OD. Unsure about Kerberos in 10.13. – jaydisc Sep 20 '18 at 23:33