rocknrollmouse
August 9th, 2009, 11:46 AM
Hi,
Working through “ubuntu server guide 8-10” trying to configure a new server.
I am trying to get samba to work as a pdc for windows clients, however when I try to add a client machine (win2k) to the domain I get:
“Your computer could not be joined to the domain because the following error has occurred:”
"Logon failure: unknown user name or bad password."
Without joining the domain, I can see the ubuntu server, and its shares; I can access and change files in unprotected shares, and I can logon to access the protected ones.
This is a testbed server running ubuntu server 8.10; there are two users, the admin user created during installation, and a normal user created to test samba. Both users can access the shares as above, but the admin user is failing to add a client machine.
smb.conf below (anything else please ask):
#============= Global Settings =============
[global]
workgroup = WIZARDS
server string = %h server (Samba, Ubuntu)
wins support = no
dns proxy = no
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
domain logons = yes
logon path = \\%N\%U\profile
logon drive = H:
logon home = \\%N\%U
logon script = logon.cmd
add machine script = sudo /usr/sbin/useradd -n -g machines -c Machine -d /var/lib/samba -s /bin/false %u
############ Misc ############
preferred master = yes
usershare allow guests = yes
#=========== Share Definitions =============
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
[netlogon]
comment = Network Logon Service
path = /srv/samba/netlogon
guest ok = yes
read only = yes
share modes = no
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /media/cdrom0
guest ok = yes
preexec = /bin/mount /media/cdrom0
postexec = /bin/umount /media/cdrom0
[first10]
comment = Ubuntu test share
path = /srv/samba/first10
browsable = yes
guest ok = yes
read only = no
create mask = 0755
[media]
comment = some big files to fill up drive
path = /srv/samba/media
browsable = yes
guest ok = no
read only = no
write list = @mediausers
create mask = 0775
Working through “ubuntu server guide 8-10” trying to configure a new server.
I am trying to get samba to work as a pdc for windows clients, however when I try to add a client machine (win2k) to the domain I get:
“Your computer could not be joined to the domain because the following error has occurred:”
"Logon failure: unknown user name or bad password."
Without joining the domain, I can see the ubuntu server, and its shares; I can access and change files in unprotected shares, and I can logon to access the protected ones.
This is a testbed server running ubuntu server 8.10; there are two users, the admin user created during installation, and a normal user created to test samba. Both users can access the shares as above, but the admin user is failing to add a client machine.
smb.conf below (anything else please ask):
#============= Global Settings =============
[global]
workgroup = WIZARDS
server string = %h server (Samba, Ubuntu)
wins support = no
dns proxy = no
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
domain logons = yes
logon path = \\%N\%U\profile
logon drive = H:
logon home = \\%N\%U
logon script = logon.cmd
add machine script = sudo /usr/sbin/useradd -n -g machines -c Machine -d /var/lib/samba -s /bin/false %u
############ Misc ############
preferred master = yes
usershare allow guests = yes
#=========== Share Definitions =============
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
[netlogon]
comment = Network Logon Service
path = /srv/samba/netlogon
guest ok = yes
read only = yes
share modes = no
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /media/cdrom0
guest ok = yes
preexec = /bin/mount /media/cdrom0
postexec = /bin/umount /media/cdrom0
[first10]
comment = Ubuntu test share
path = /srv/samba/first10
browsable = yes
guest ok = yes
read only = no
create mask = 0755
[media]
comment = some big files to fill up drive
path = /srv/samba/media
browsable = yes
guest ok = no
read only = no
write list = @mediausers
create mask = 0775