Click to See Complete Forum and Search --> : Samba as a PDC: Having a few problems


tarballed
04-30-2003, 03:23 PM
Hello everyone. Well, I am attempting to setup a Samba server to act as our PDC. However, I seem to be having a problem trying to get it to work correctly.

I have followed a couple of tutorials in the following links:

http://hr.uoregon.edu/davidrl/samba/samba-pdc.html

http://www.linux-mag.com/cgi-bin/printer.pl?issue=2002-02&article=samba

http://www-1.ibm.com/servers/esdd/tutorials/samba/index.html

I have followed the directions correctly, however the problem lies when I try and add a Windows 2000 Client to the PDC. For some reason, it spits out the following error:

# The Account Used is a Computer Account. Use Your Global User Account or Local User Account to Access the Server

I have tried to research it, but so far, no luck.

Here is my smb.conf file:

[global]

# workgroup = NT-Domain-Name or Workgroup-Name
;Basic inital test settings
netbios name = smbtest
workgroup = disneyland

;PDC and Master browser settings
preferred master = yes
local master = yes
domain master = yes
os level = 65

;security and logging settings
security = user
encrypt passwords = yes
domain logons = yes

;logon paths
logon path = \\%L\profiles\%u\%m
logon script = logon.bat

logon drive = H:

[netlogon]
path = /home/netlogon
writable = no
browsable = no

[profiles]
path = /home/samba/profiles
browsable = no
writable = yes
create mask = 0600
directory mask = 0700

[homes]
read only = yes
browsable = no
guest ok = no
map archive = yes

# server string is the equivalent of the NT Description field
server string = Samba Server Running %v

add user script = /usr/sbin/adduser -d /dev/null -g 100 -s /bin/false -M %u

I am so close, yet I am missing something.

If you need any additional info, let me know.

Thanks.

Tarballed

tarballed
04-30-2003, 03:42 PM
Ok. I was actually able to add a computer to the PDC. However, I am a little confused as to how it actually worked. heheh

Anyways, here is what I did: (If you refer to the IBM tutorial, that is where I was able to successfully add the computer to the PDC)

Ok. Specificall, go to the section in the tutorial called: "Directories, accounts and authentication."

Then go to page 3.

It was not until I did this, did it work:


[root@phoenix root]# /usr/sbin/useradd -g machines -d /dev/null -c "machine id" -s /bin/false machine_name$
[root@phoenix root]# passwd -l machine_name$
Changing password for user machine_name$
Locking password for user machine_name$

[root@phoenix root]# smbpasswd -a -m machine_name
Added user machine_name$

Now, that is the manual way to do things. However, I would like to do the automated approach. I then tried the script:

add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u


I thought that would work, but not so lucky.

Anyone have any idea on what exactly happened? I am trying to understand this more so I have a much better understanding of what is going on.

I would really be greatful if someone could explain this so I understand.

Thank you.

Tarballed