- 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
sudo log stream --debug --predicate 'subsystem == "com.apple.opendirectoryd"'
Will allow you to see the log as it goes. Mojave has gone to a 'unified system log' https://eclecticlight.co/2018/09/25/how-mojave-changes-the-unified-log/