• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

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
0
options_strategy
Asked:
options_strategy
  • 3
  • 2
1 Solution
 
CrolackCommented:
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.
0
 
Monis MontherSystem ArchitectCommented:
Your Linux SAMBA Domain controller is either configured to use DNS or WINS

make sure your client has his DNS and WINS pointing to your Linux DC

0
 
options_strategyAuthor Commented:
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
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Monis MontherSystem ArchitectCommented:
Under linux the logging is under /var/log/samba/

there you will find some files that log this process
0
 
options_strategyAuthor Commented:
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
0
 
options_strategyAuthor Commented:
Thanks for your help, it wasn't the entire solution but it was definitely the best advice and the closest.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now