Link to home
Start Free TrialLog in
Avatar of options_strategy
options_strategy

asked on

How to add a Win XP PC to a domain controlled by linux?

Hi,

I have an ubuntu server that manages our domain and file shares. I currently have about 10 windows XP machines running in the domain without any trouble.

Recently a machine needed to be reformatted and I am having trouble getting it to connect back into the domain. I am trying to use the same machine name as it had before (I assume this is ok?)

I can ping the domain controller and can also access file shares (I'm prompted for my domain user account) however it refuses to actually connect itself.

The error I am getting is:
'The following error occurred attempting to join the domain "DOMAINNAMEHERE":
The specified domain either does not exist or could not be contacted."

I had assistance the last time I needed to add a machine and now can't remember how it was done but am fairly certain it was not particularly difficult.

Obviously I am lacking a little information but if anyone has any ideas or questions please let me know as I'm very keen to get this sorted in the next day or so.

Thanks in advance,

Brad
Avatar of Crolack
Crolack
Flag of United States of America image

I know that in AD you need to delete the machine account before you can re-add it. Windows XP will generate a new SID everytime that it's installed, so my guess is your Linux DC is rejecting the add because it thinks it's a different machine.

Try a name that hasn't been used before and see if that works. My Linux skills are lacking, so I'm not sure where you manage machine accounts.
ASKER CERTIFIED SOLUTION
Avatar of Monis Monther
Monis Monther
Flag of Iraq image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of options_strategy
options_strategy

ASKER

Thanks for the suggestions. I have tried using a different machine name, something that's not been used previously and am having the same problem.

As for the DNS it was automatically picking up the correct DNS details (the same as what the other PCs are using) but I have tried manually entering them as well which made no difference. As for the WINS I am not sure what this is, the other PCs have nothing different under the "WINS" tabs in Advanced TCP/IP Settings but I have tried to manually enable the NetBIOS over TCP/IP as per another question posted somewhere on EE.

I have disabled the Windows firewall based on other answers on EE but that has not made any difference either. Out of curiousity does it use any particular port that I could listen to using ethereal or something to see if it's even trying to communicate?

Also is there any logging done by linux to see if it's communicating but the server is not responding correctly?

Thanks again for the comments so far.

Brad
Under linux the logging is under /var/log/samba/

there you will find some files that log this process
I am not entirely sure what fixed the problem but it is working now.

I tried a few things from a few different posts around the web and also fiddled with settings a little bit.

I changed the workgroup to be the same as the domain name, a suggestion from somewhere, didn't appear to make any difference but might have helped in the end.
I changed a couple of registry settings "sign or seal" patch, again it didn't appear to make any real difference but it might have helped.
I added an IP address into the WINS list, not sure why it needed this when none of the other PCs had it, this was one of the last things I changed so I am assuming this was the main issue I had.

Thanks everyone for your help, if it didn't directly fix the problem it at least gave me more places to look and more things to research to get it working again.

Brad
Thanks for your help, it wasn't the entire solution but it was definitely the best advice and the closest.