Thursday, 13 January 2011

OS X Active Directory login issues - delete parallels

I keep coming across Apple Macs which have been working in Active Directory and yet not letting users log in (or even use kerberos in Firefox). The general symptoms are:

  • "Some network accounts available" at login screen (i.e. active directory not working, open directory working)
  • not letting active directory users log in
  • showing active directory working in "Directory Utility"
  • letting you re-bind to active directory with no problems
  • trying to use firefox with kerberos authentication comes up with "unable to ......." (can't remember the exact error)
I tried the simple fixes such as reset the PR Ram and fsck -yf. I was going to do a disk permissions fix but thought it'd take too long. I looked in the console and found a few kerberos errors.

I found that there were a few errors with the network settings. I found that because the image was taken from a computer with Airport, it hadn't updated this and thought the ethernet connection was in fact an airport connection. I deleted the "Chesterfield College" location and made it "automatic" but deleted the airport which fixed that. I also noticed two Parallels shared connection network interfaces, which were set up when I was trialing Parallels. On deleting these and logging out, active directory accounts worked. But on reboot the devices were remade. So there was some files somewhere which remade the connections. I thought it be quicker looking for help rather then looking for files, and on a quick search I found some helpful stuff. Before I come to that I did notice that Parallels was actually still installed. So I recommend first you delete Parallels from the Applications folder.

Next would be deleting parallels library files. I found this forum, and down the bottom they mention:

cd /Library/
sudo rm -rf Parallels
cd /Library/Preferences/
sudo rm -rf Parallels
cd /Library/StartupItems/
sudo rm -rf ParallelsTransporter
cd /System/Library/Extensions/
sudo rm -rf prl_hid_hook.kext
sudo rm -rf prl_hypervisor.kext
sudo rm -rf prl_vnic.kext
sudo rm -rf prl_usb_connect.kext
sudo rm -rf prl_netbridge.kext
cd /Users//
sudo rm -rf .parallels/
sudo rm -rf .parallels_settings

I of course did all of this, but I think just deleting the Parallels application should do the job.

.... well, had a little play around and it turns out it's best doing all of it and heres ARD send command thing (under root)

rm -R /Applications/Parallels
rm -R /Applications/Parallels\
rm -rf /Library/Parallels
rm -rf /Library/Preferences/Parallels
rm -rf /Library/StartupItems/ParallelsTransporter
rm -rf /System/Library/Extensions/prl_hid_hook.kext
rm -rf /System/Library/Extensions/prl_hypervisor.kext
rm -rf /System/Library/Extensions/prl_vnic.kext
rm -rf /System/Library/Extensions/prl_usb_connect.kext
rm -rf /System/Library/Extensions/prl_netbridge.kext
rm -rf /Users//.parallels/
rm -rf /Users//.parallels_settings

It's impossible to delete network devices via command line, but doing the above disconnects them, which is the next best thing.

No comments:

Post a Comment