Skip to main content
Question

unbinding from Domain issue

  • March 20, 2019
  • 4 replies
  • 10 views

Forum|alt.badge.img+4

I'm trying to unbind from a domain (using the unbinding.sh script thats floating around here) .... the script runs and is successful in unbinding from the domain, but returns as "failed" in the logs...

Any suggestions on what's going on? Should i be worried or just disregard since it's doing its job...

4 replies

Forum|alt.badge.img+18
  • Contributor
  • March 20, 2019

@rhernandez_hg Can you post the script code? Most likely what is going on is it is attempting to restart directory service for a pre 10.9 or 10.10 machine, and the service name is different on newer OSs.


Forum|alt.badge.img+18
  • Contributor
  • March 20, 2019

@rhernandez_hg I found it, change the last line from this:

killall DirectoryService

to:

/bin/launchctl stop com.apple.opendirectoryd

Forum|alt.badge.img+8
  • Contributor
  • March 20, 2019

@rhernandez_hg what does your script look like? I literally run this to unbind machines. keep the "johndoe" and "nopasswordhere" in there.


Forum|alt.badge.img+7
  • Valued Contributor
  • September 5, 2019

Just to add on to this thread. Using the unbind script for the Scripts section of resources. Get the following error. Using the same domain admin used for binding. Have tried sub.domain.localadmin as well as subadmin and even hardcoded the admin in the script. Same error. Thoughts?