Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-07-2006, 03:52 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
Win XP authentication to Samba PDC

I have a long-running samba 2 machine (on top of Debian) running as my PDC. It is also running dhcp.

I added the machine to my dhcpd.config files. (We issue ip addresses based on mac addresses.) When I boot it, I get my ip address, and can ping all machines.

I am attempting to do the initial authentication of a new XP Pro SP2 machine to it to join the domain, but with no success. I have done this about 30 times over the past 5 years without issue. I know samba is configured correctly because my office is still up and running - as it has for years.

I have done the WinXP reg hack I know of:
Digitally encrypt or sign secure channel data (always) - 0

I have added the machine account on the debian server:

useradd -s /bin/false -d /dev/null machinename\$
smbpasswd -a -m machiinename
then restarted samba

I then try to authenticate to join the domain:
System Properties -> change name -> domain radio button & put in the domain name -> hit OK. I am prompted for UID/PW. I supply the linux uid/pw for root - which I have done many times.

Instead of the normal "welcome to the domain", I get a windows error message: "Login failure: unknown user name or bad password"

I have tried several times, even changing the machine name a couple of times. But with no success. I have done many googles, but cannot find any solutions.

Any suggestions? What am I missing?
Old 09-08-2006, 10:02 AM   #2
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
FIrst for XP-pro sp2 you do no need to do the registry hack.
Second i hope you would have had added root user& pass to samba pass database.
Third I hope you would'nt be having firewall(default windows) running at this particular XP box.
Fourth I hope you would'nt have disabled netbios over tcp-ip in the lan card properties over XP box.
Fifth I hope you wont have any firewall at linux-samba box block the same as well.
Sixth; Are you getting this problem at thix box only; Try to unjoin any previously other attached box & try to rejoin it.
Old 09-08-2006, 10:05 AM   #3
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
And i can understand though as you have done the same process over the years again n again with success but sometimes it simple doesnt do & thats when frustration creeps in... but i suggest you to keep yourself cool & assure you that you yourself will find the solution tothis problem.

One more thing; have you also referred to the logs(samba-box); What does they say when you get this error at XP box ?

With best regards,
Old 09-08-2006, 03:17 PM   #4
LQ Newbie
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
First, I have authenticated many computers on this network. Yes, root has had a password in smbpasswd since the start, many years ago (more on this in a moment, though).

As to firewalls, turned off (behind my hardware firewall) temporarily until the machine is set up. But I am not open to the outside owrld, either at this point.

All of the other things are set correctly - checked, double cehcked, and dtriple checked over the course of 2 days. And while I have been frustrated, its only a computer! But thanks for worrying!

Back to root smbpasswd, though.

Problem was solved this am. I had rechecked my smbpasswd, as I realized this was an user authentication issue. Sure enough, it was in smbpasswd. But for some reason I thought maybe, just maybe it got I redid the smbpasswd for root.

Sure enough, it worked. I can only think that I might have corrupted it while deleting a user in the past, and this was the first authentication I was doing since then. So, while I had root and a password in smbpasswd, the passwd was incorrect.

Up and running now, everything going great!

Thanks for the help & suggestions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA PDC + LDAP Authentication problem gokulnath Linux - Networking 2 02-17-2007 10:06 AM
windows authentication using ldap/samba pdc procfs Linux - General 2 07-21-2006 09:25 AM
Samba PDC, win 9x and 2k acop Linux - Networking 0 10-31-2005 01:35 PM
Samba PDC , LDAP user authentication , what about Machines ? Jingle Linux - Enterprise 0 07-22-2005 09:00 AM
Samba 2.2 PDC AND Win 2k gasurfman Linux - Networking 0 10-30-2003 02:41 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration