- Open the Terminal Application
- Type in
sudo -i
and type in your Mac Administrator account password.sudo
gives you root level or administrator level privileges.
dsconfigad -show
dsconfigad -f -r -u
Note: <username>
needs to be replaced with domain administrator who has binding/unbinding rights.
<computer-name>
--> replace this with the computer name you want to bind to Active Directory
<username>
--> needs to be replaced with domain administrator who has binding/unbinding rights.
<domain>
--> replace with domain you want to join.
dsconfigad -a <computer-name> -u <username> -ou "CN=Computers,DC=network,DC=pcpc,DC=org" -domain <domain> -mobile enable -mobileconfirm enable -localhome enable -useuncpath enable -groups "Domain Admins,Enterprise Admins" -alldomains enable
<computer-name>
--> replace this with the computer name you want to bind to Active Directory
<username>
--> needs to be replaced with domain administrator who has binding/unbinding rights.
<domain>
--> replace with domain you want to join.
dsconfigad -a <computer-name> -u <username> -ou "CN=Computers,DC=network,DC=pcpc,DC=org" -domain <domain> -localhome enable -useuncpath enable -groups "Domain Admins,Enterprise Admins" -alldomains enable
Is there special syntax associated with the -u and -p for unbinding? I don't want to force unbind leaving cruft in AD. I keep getting "Invalid Credentials supplied to remove the bound server" I've tried:
For -u
ou\admin-account
ou\admin-account
admin-account
For -p
pa$$w0rd^
pa$$w0rd^
NOTE - these are random credentials but I am structuring them here to be very similar, including the $ in the password.
I believe bash is messing with my credentials...If I echo the password with the "" in front of the $ signs, it echos properly. If I echo ou\admin-account with the additional , it echoes properly.
Help please :D