Jump to content

Can't forcibly unbind Xserve from old AD domain


Recommended Posts

Posted

Hello all

 

We have an Xserve that was bound to our AD domain until just 2 days ago when we decided to recreate the entire curriculum domain again from scratch (it was a crazy two days!). I came in this morning and our 2 Mac labs weren't finding their network accounts, so I assumed it was because the bind between the Xserve and AD was still looking at the old domain.

 

I have tried to unbind the Xserve, left it for about 3 hours and it gets stuck with the little spinning wheel saying "Removing this computer from Active Directory" I tried and force quit, it locks up the Xserve. I even tried putting in incorrect credentials and clicks Force Unbind, but the same thing happens. The Xserve freezes up on unbinding and I have to turn it off at the switch (something I don't like doing to a server)

 

Please if anyone has an ideas about what I can do (such as diving into some far off plist files to edit something) then it would save my life! I need to get these Mac labs back up and running ASAP :-)

 

Thanks,

 

Jaime Klein

Posted

The commands you should be running are:

 

sudo –s

 

Provide the local admin name and password. You won’t see it being typed as there is no echo in Terminal.

 

The commands you run thereafter are:

 

rm –R –v /Library/Preferences/DirectoryService

 

rm –R –v /Library/Preferences/SystemConfiguration

 

rm –R –v /Library/Preferences/edu.mit.kerberos

 

rm –R –v /Library/Managed\ Preferences

 

This should remove all network settings and AD seetings

  • Thanks 1
Posted

I have tried these commands and it got rid of all my Open Directory preferences such as the users I had in OD, and deleted OD from the Directory Utility window, but the AD entry was still there, and still bound. I tried unbinding again and the same thing happened....the server just froze.

 

Any ideas?

 

Thanks

Posted
The commands you should be running are:

 

sudo –s

 

Provide the local admin name and password. You won’t see it being typed as there is no echo in Terminal.

 

The commands you run thereafter are:

 

rm –R –v /Library/Preferences/DirectoryService

 

rm –R –v /Library/Preferences/SystemConfiguration

 

rm –R –v /Library/Preferences/edu.mit.kerberos

 

rm –R –v /Library/Managed\ Preferences

 

This should remove all network settings and AD seetings

 

When I'm looking for a quick method to dump my AD & OD settings I run the following command that "Rick2134" mentioned but when you do so immediately restart your server.

 

rm –R –v /Library/Preferences/DirectoryService

 

  • 3 weeks later...
Posted

Have you tried using dsconfigad with the -f flag to force the unbind in the command line, much more reliable than the GUI..

 

Tom

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...