unbinding from Domain issue

raphhyyy
New Contributor III

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...3b2503f9b733429cacba4e993c58b42b

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

4 REPLIES 4

ryan_ball
Valued Contributor

@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.

ryan_ball
Valued Contributor

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

killall DirectoryService

to:

/bin/launchctl stop com.apple.opendirectoryd

woodsb
Contributor

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

40260659d8cb442bb834c4a51dcea58d

erichughes
Contributor II

Just to add on to this thread. Using the unbind script for the Scripts section of resources. Get the following error.12747bc93e1642d2bc47f661b636f7e2 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?