LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Joining XP to a Samba PDC (http://www.linuxquestions.org/questions/linux-networking-3/joining-xp-to-a-samba-pdc-349327/)

DirtySanchez 08-02-2005 04:17 PM

Joining XP to a Samba PDC
 
Ok, so here is were i am now.

I have my Samba smb.conf Configured.


# Global parameters
[global]
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

[homes]
comment = Home Directories
read only = No
browseable = No

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

[printers]
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.

Username:hart\root
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.
linux_test.log

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 (10.78.3.109) 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 (10.78.3.109) 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 (10.78.3.109) closed connection to service netlogon
[2005/08/02 11:57:24, 1] smbd/service.c:close_cnum(836)
linux_test (10.78.3.109) 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.

d00msdaypr0phet 08-03-2005 01:25 AM

[global]
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!


All times are GMT -5. The time now is 10:15 PM.