Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-03-2009, 08:01 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 20

Rep: Reputation: Disabled
Failing to join domain/Samba/LDAP/XP

I've read quite a few posts in various forums on this problem, but haven't yet found a solution. I'm running Samba 3.0.23c-1.fc5 (Fedora 5) as a PDC with an LDAP backend and my problem is joining XP machines to the domain. It seems that the only way I can get it to work is to add the machine account with

smbldap-useradd -w "machine$"

and _also_ add an entry to /etc/passwd for the same machine with the same uid and gid as assigned in the LDAP backend.

Unless I do both, I always get a user name not found error when trying to join the domain.

Another interesting thing is that when asked on the XP side for a username and password of an account that has permissions to join the domain, entering "root" without a password works. If I include the password for root I get an bad password error.

I have defined in smb.conf

add machine script = /usr/sbin/smbldap-useradd -w "%u"

and when joining fails, the following in smbd.log

_samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w "machine$"' gave 9

Any ideas?


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
Whay I can't join WinXP to Samba PDC LDAP domain? meksyk13 Linux - Server 3 08-29-2014 07:34 AM
Samba - Cannot join domain m4rk Linux - Software 6 06-27-2007 08:40 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Cannot join Samba domain. codedv Linux - Networking 0 10-12-2004 05:33 PM
Can't join my Samba Domain subaruwrx Linux - Networking 53 09-30-2004 10:29 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:40 AM.

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