[Samba] PDC config asking for double AUTH

daniel parkes liquidsmail at gmail.com
Sat Sep 9 08:12:58 GMT 2006


I have set up a samba PDC with tdbsam, for a office, everything seems to be
ok, users logon to the pcs with their user domains, the policies are working
ok, but once they login, when they try to access a share in the samba pdc
server, it asks againg for user and passwd, Any idea why its doing this?,
you cant access also the netlog on share, so no scripts are working :**.

Another doubdt i have is if i dont want roaming profiles, i just want to the
users to use their profile in their pc how can i do it?

my config is like this:

#======================= Global Settings =======================


workgroup = liquid.zz
netbiosname = liquidsbox
server string = LiquidDs Samba Fuck U server
time server = Yes
wins support = yes
passdb backend = tdbsam
os level = 64
preferred master = auto
domain master = yes
local master = yes
preferred master = Yes
security = user
domain logons = yes
;logon path = \\%N\profiles\%U
logon drive = H:
logon home = \\liquidsbox\home\%u
logon script = logon.cmd
add user script = /usr/sbin/useradd -d /dev/null -g smbusers -s /bin/false
-m %u
add machine script = /usr/sbin/useradd -d /dev/null -g machines -s
/bin/false -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'

path = /var/lib/samba/netlogon
guest ok = Yes
share modes = no
public = no
read only = no
write list = root
browseable = no

#### Debugging/Accounting ####
log file = /var/log/samba/%m
      log level = 2
      syslog = 0

#======================= Share Definitions =======================

   comment = Home Directories
   browseable = yes
   writable = yes
   create mask = 0700
   directory mask = 0700

   comment = Carpeta compartida
   locking = no
   path = /samba
   browseable = yes
   writable = yes
   create mask = 0700
   directory mask = 0700
   valid users = @users

Also when i list a user the ouput gives me as the domain the netbios name of
the pdc server not the name of the domain:

root at liquidsbox:~ # pdbedit -Lv -u prueba
Unix username:        prueba
NT username:
Account Flags:        [U          ]
User SID:             S-1-5-21-2639249364-3457876577-3313450608-3006
Primary Group SID:    S-1-5-21-2639249364-3457876577-3313450608-1201
Full Name:            prueba de samba
Home Directory:       \\liquidsbox\home\%u
HomeDir Drive:        F:
Logon Script:         logon.cmd
Profile Path:
Domain:               LIQUIDSBOX ------------------> when the domain name is
Account desc:
Munged dial:
Logon time:           0
Logoff time:          Sun, 07 Feb 2106 07:28:15 CET
Kickoff time:         Sun, 07 Feb 2106 07:28:15 CET
Password last set:    Sat, 09 Sep 2006 09:35:42 CEST
Password can change:  Sat, 09 Sep 2006 09:35:49 CEST
Password must change: Sat, 09 Sep 2006 09:37:12 CEST
Last bad password   : 0
Bad password count  : 0

could have to do with this?

Thnx a lot!

More information about the samba mailing list