Visit Jeremy's Blog.
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 08-02-2005, 03:17 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Los Angeles, CA
Posts: 18

Rep: Reputation: 0
Joining XP to a Samba PDC

Ok, so here is were i am now.

I have my Samba smb.conf Configured.

# Global parameters
workgroup = HART
server string = Samba PDC Server
password server = None
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
add user script = /usr/sbin/useradd .d /dev/null .g 100 .s /bin/false .M %u
add machine script = /usr/sbin/useradd -d /dev/null -g 102 -s /bin/false
domain logons = Yes
os level = 64
domain master = Yes
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 10.78., 127.
cups options = raw

comment = Home Directories
read only = No
browseable = No

comment = Network Logon Service
path = /opt/samba/netlogon

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

I have the following users set up in Linux.

Root (root User)
dsanchez (normal User)

Then i did:
smbpasswd -a root
smbpasswd -a dsanchez

Now I go to my XP Pro Box and try to add this system to the Samba Server Domain.

password: *************

And i get the following error:
Your computer could not be joined to the domain because the following error has occured.
The account used is a computer account. Useyour global user account or local user account to access this server.

However, i can still map tp this server and I even placed a file in my home dir.

I checked the logs and found a log with the name of the XP Pro box.

This is what is inside that log:

[2005/08/01 13:37:37, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(195)
startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. File successfully created.
[2005/08/02 11:56:09, 1] smbd/service.c:make_connection_snum(648)
linux_test ( connect to service dsanchez initially as user dsanchez (uid=500, gid=500) (pid 10494)
[2005/08/02 11:56:17, 1] smbd/service.c:make_connection_snum(648)
linux_test ( connect to service netlogon initially as user dsanchez (uid=500, gid=500) (pid 10494)
[2005/08/02 11:57:24, 1] smbd/service.c:close_cnum(836)
linux_test ( closed connection to service netlogon
[2005/08/02 11:57:24, 1] smbd/service.c:close_cnum(836)
linux_test ( closed connection to service dsanchez

I think the problem is a rights issue with adding the PC to the Domain.
I have tried using the username administrator, admin, adm in place of root and still no go.
Old 08-03-2005, 12:25 AM   #2
Registered: Mar 2005
Location: Oregon
Distribution: Debian, Ubuntu, Whatever
Posts: 32

Rep: Reputation: 15
netbios name =servername
workgroup = domain
#passdb backend = smbpasswd
#add machine script = /usr/sbin/useradd -n -d /dev/null -g 100 \
#-c %m -p %m -s /bin/false -M %u
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
#username map = /etc/samba/smbusers
os level = 33
log level=2 passdb:2 auth:2
preferred master = yes
domain master = yes
local master = yes
security = user
encrypt passwords = true
domain logons = yes
logon path =
logon drive =
logon home =

winbind separator = +
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind cache time = 15
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = yes
logon script = logon.bat

This is the script I've been using for my DC everywhere. Use at your own risk but I have had perfect luck with it on Fedora, Debian,Ubuntu,Gentoo, Slackware, and FreeBSD.

Hope It helps and givves you a good base to work with!


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
joining a samba domain ikw38 Linux - Networking 20 09-22-2009 11:14 PM
joining a linux client into the domain running Samba PDC zdehman Linux - Networking 2 08-18-2006 05:06 AM
Joining XP Pro SP2 to Samba domain PDC Les62 Linux - Networking 13 10-09-2005 08:00 AM
Linux joining Samba PDC yenonn Linux - Networking 1 12-15-2004 09:02 PM
Joining Win2k client to a samba PDC seaver Linux - Networking 3 08-07-2003 09:34 AM > Forums > Linux Forums > Linux - Networking

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