Posted on 03-20-2019 10:34 AM
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...
Posted on 03-20-2019 10:45 AM
@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.
Posted on 03-20-2019 10:51 AM
@rhernandez_hg I found it, change the last line from this:
killall DirectoryService
to:
/bin/launchctl stop com.apple.opendirectoryd
Posted on 03-20-2019 12:22 PM
@rhernandez_hg what does your script look like? I literally run this to unbind machines. keep the "johndoe" and "nopasswordhere" in there.
Posted on 09-05-2019 08:17 AM
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?