<div id="mb_0">
<p style="margin-bottom: 0cm;">Hi,</p><p style="margin-bottom: 0cm;">Since September 2006, I've been using a
samba PDC (3.0.20) with tdbsam, to authenticate the users of a school
network (90 XP boxes). All the users are able to log in the network
from XP boxes.</p>
<p style="margin-bottom: 0cm;">Recently, I've installed a samba client
(K12LTSP) in the domain, but, <span style="font-style: normal;">I' ve
a problem getting linux client to authenticate against the Samba PDC.
After setup all the config files (smb.conf, nsswitch, system-auth/pam
amd pam_mount.conf) and start all services, I can't log in. The error
message is "Account disabled by the administrator". This happen with all accounts.<br></span></p>
<p style="margin-bottom: 0cm;">When I try to logon into the linux
client machine with a username and password stored in samba I get the
following in /var/log/messages:</p>
<p style="margin-bottom: 0cm;">==> messages <==</p>
<p style="margin-bottom: 0cm;">Jan 31 17:41:38 ltspserver1 nmbd[2954]:
   
</p>
<p style="margin-bottom: 0cm;">Jan 31 17:41:38 ltspserver1 nmbd[2954]:
  ***** 
</p>
<p style="margin-bottom: 0cm;">Jan 31 17:42:29 ltspserver1
pam_winbind[3455]: user 'p1012' OK</p>
<p style="margin-bottom: 0cm;">Jan 31 17:42:29 ltspserver1
pam_winbind[3455]: user 'p1012' granted access</p>
<p style="margin-bottom: 0cm;">Jan 31 17:42:29 ltspserver1 gdm[3740]:
session_child_run: Utilizador não autorizado a iniciar sessão</p>
<p style="margin-bottom: 0cm;">Jan 31 17:59:44 ltspserver1
restorecond: Reset file context /etc/mtab:
system_u:object_r:etc_t:s0->system_u:object_r:etc_runtime_t:s0 
</p>
<p style="margin-bottom: 0cm;">Jan 31 18:00:18 ltspserver1
pam_winbind[3832]: user 'p1012' OK</p>
<p style="margin-bottom: 0cm;">Jan 31 18:00:18 ltspserver1
pam_winbind[3832]: user 'p1012' granted access</p>
<p style="margin-bottom: 0cm;">Jan 31 18:00:18 ltspserver1 gdm[3846]:
session_child_run: Utilizador não autorizado a iniciar sessão</p>
<p style="margin-bottom: 0cm;">Jan 31 18:08:28 ws253.ltsp -- MARK --</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">TRANSLATION of "Utilizador não
autorizado a iniciar sessão": User not allowed to start
session</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">In Samba PDC the command pdbedit -Lv
p1012, prints:</p>
<p style="margin-bottom: 0cm;">Unix username:        p1012</p>
<p style="margin-bottom: 0cm;">NT username:          
</p>
<p style="margin-bottom: 0cm;">Account Flags:        [UX         ]</p>
<p style="margin-bottom: 0cm;">User SID:            
S-1-5-21-3881466999-1126814743-3210567677-7692</p>
<p style="margin-bottom: 0cm;">Primary Group SID:   
S-1-5-21-3881466999-1126814743-3210567677-2113</p>
<p style="margin-bottom: 0cm;">Full Name:            Carlos Carvalho</p>
<p style="margin-bottom: 0cm;">Home Directory:       \\servlinux\p1012</p>
<p style="margin-bottom: 0cm;">HomeDir Drive:        X:</p>
<p style="margin-bottom: 0cm;">Logon Script:         logon.bat</p>
<p style="margin-bottom: 0cm;">Profile Path:         
</p>
<p style="margin-bottom: 0cm;">Domain:               ESCOLA</p>
<p style="margin-bottom: 0cm;">Account desc:         
</p>
<p style="margin-bottom: 0cm;">Workstations:         
</p>
<p style="margin-bottom: 0cm;">Munged dial:          
</p>
<p style="margin-bottom: 0cm;">Logon time:           0</p>
<p style="margin-bottom: 0cm;">Logoff time:          Tue, 19 Jan 2038
03:14:07 GMT</p>
<p style="margin-bottom: 0cm;">Kickoff time:         Tue, 19 Jan 2038
03:14:07 GMT</p>
<p style="margin-bottom: 0cm;">Password last set:    Thu, 04 Jan 2007
18:00:11 GMT</p>
<p style="margin-bottom: 0cm;">Password can change:  Thu, 04 Jan 2007
18:00:11 GMT</p>
<p style="margin-bottom: 0cm;">Password must change: Tue, 19 Jan 2038
03:14:07 GMT</p>
<p style="margin-bottom: 0cm;">Last bad password   : 0</p>
<p style="margin-bottom: 0cm;">Bad password count  : 0</p>
<p style="margin-bottom: 0cm;">Logon hours         :
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">All the following commands succeeded:</p>
<p style="margin-bottom: 0cm;">wbinfo -u</p>
<p style="margin-bottom: 0cm;">wbinfo -g</p>
<p style="margin-bottom: 0cm;">wbinfo -t</p>
<p style="margin-bottom: 0cm;">getent passwd</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">My config files are:</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">SMB.CONF (SAMBA PDC):</p>
<p style="margin-bottom: 0cm;">[global]</p>
<p style="margin-bottom: 0cm;"> unix charset = iso8859-1</p>
<p style="margin-bottom: 0cm;"> display charset = cp850</p>
<p style="margin-bottom: 0cm;"> workgroup = ESCOLA</p>
<p style="margin-bottom: 0cm;"> server string = Samba Server</p>
<p style="margin-bottom: 0cm;"> passdb backend = tdbsam</p>
<p style="margin-bottom: 0cm;"> passwd chat = *new*password* %n\n
re-enter*new*password* %n\n password*changed*</p>
<p style="margin-bottom: 0cm;"> username map = /etc/samba/smbusers</p>
<p style="margin-bottom: 0cm;"> log level = 2 auth</p>
<p style="margin-bottom: 0cm;"> syslog = 0</p>
<p style="margin-bottom: 0cm;"> log file = /var/log/samba/%m.log</p>
<p style="margin-bottom: 0cm;"> max log size = 50</p>
<p style="margin-bottom: 0cm;"> name resolve order = wins bcast hosts</p>
<p style="margin-bottom: 0cm;"> time server = Yes</p>
<p style="margin-bottom: 0cm;"> printcap name = cups</p>
<p style="margin-bottom: 0cm;"> show add printer wizard = No</p>
<p style="margin-bottom: 0cm;"> add user script = /usr/sbin/useradd -m
%u</p>
<p style="margin-bottom: 0cm;"> delete user script = /usr/sbin/userdel
-r %u</p>
<p style="margin-bottom: 0cm;"> add group script = /usr/sbin/groupadd
%g</p>
<p style="margin-bottom: 0cm;"> delete group script =
/usr/sbin/groupdel %g</p>
<p style="margin-bottom: 0cm;"> add user to group script =
/usr/sbin/usermod -G %g %u</p>
<p style="margin-bottom: 0cm;"> add machine script = /usr/sbin/useradd
-s /bin/false -d /var/lib/nobody %u</p>
<p style="margin-bottom: 0cm;"> logon script = logon.bat</p>
<p style="margin-bottom: 0cm;"> logon path = 
</p>
<p style="margin-bottom: 0cm;"> logon drive = X:</p>
<p style="margin-bottom: 0cm;"> domain logons = Yes</p>
<p style="margin-bottom: 0cm;"> os level = 65</p>
<p style="margin-bottom: 0cm;"> preferred master = Yes</p>
<p style="margin-bottom: 0cm;"> domain master = Yes</p>
<p style="margin-bottom: 0cm;"> wins support = Yes</p>
<p style="margin-bottom: 0cm;"> ldap ssl = no</p>
<p style="margin-bottom: 0cm;"> idmap uid = 10000-20000</p>
<p style="margin-bottom: 0cm;"> idmap gid = 10000-20000</p>
<p style="margin-bottom: 0cm;"> admin users = root</p>
<p style="margin-bottom: 0cm;"> veto oplock files =
/*.doc/*.xls/*.mdb/</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">[homes]</p>
<p style="margin-bottom: 0cm;"> comment = Home Directories - %p</p>
<p style="margin-bottom: 0cm;"> valid users = %S</p>
<p style="margin-bottom: 0cm;"> read only = No</p>
<p style="margin-bottom: 0cm;"> browseable = No</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">[printers]</p>
<p style="margin-bottom: 0cm;"> comment = SMB Print Spool</p>
<p style="margin-bottom: 0cm;"> path = /var/spool/samba</p>
<p style="margin-bottom: 0cm;"> guest ok = Yes</p>
<p style="margin-bottom: 0cm;"> printable = Yes</p>
<p style="margin-bottom: 0cm;"> use client driver = Yes</p>
<p style="margin-bottom: 0cm;"> browseable = No</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">[netlogon]</p>
<p style="margin-bottom: 0cm;"> comment = Network Logon Service</p>
<p style="margin-bottom: 0cm;"> path = /home/netlogon/%u</p>
<p style="margin-bottom: 0cm;"> read only = No</p>
<p style="margin-bottom: 0cm;"> browseable = No</p>
<p style="margin-bottom: 0cm;">[software]</p>
<p style="margin-bottom: 0cm;"> comment = Instalacao de SW</p>
<p style="margin-bottom: 0cm;"> path = /apps/programas</p>
<p style="margin-bottom: 0cm;"> create mode = 770</p>
<p style="margin-bottom: 0cm;"> directory mode = 770</p>
<p style="margin-bottom: 0cm;"> valid users = root @ti</p>
<p style="margin-bottom: 0cm;"> admin users = p650 p1012 p894</p>
<p style="margin-bottom: 0cm;"> writeable = yes</p>
<p style="margin-bottom: 0cm;"> browseable = no</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">[professores]</p>
<p style="margin-bottom: 0cm;"> comment = Ficheiros para professores</p>
<p style="margin-bottom: 0cm;"> path = /apps/professores</p>
<p style="margin-bottom: 0cm;"> create mode = 770</p>
<p style="margin-bottom: 0cm;"> directory mode = 770</p>
<p style="margin-bottom: 0cm;"> valid users = root @professores</p>
<p style="margin-bottom: 0cm;"> admin users = p650 p1012 p894</p>
<p style="margin-bottom: 0cm;"> writeable = yes</p>
<p style="margin-bottom: 0cm;"> browseable = no</p>
<p style="margin-bottom: 0cm;">[administracao]</p>
<p style="margin-bottom: 0cm;"> comment = Programas de Gestao</p>
<p style="margin-bottom: 0cm;"> path = /apps/administracao</p>
<p style="margin-bottom: 0cm;"> create mode = 775</p>
<p style="margin-bottom: 0cm;"> directory mode = 775</p>
<p style="margin-bottom: 0cm;"> valid users = root @professores @t1213</p>
<p style="margin-bottom: 0cm;"> admin users = p894 p774 p140</p>
<p style="margin-bottom: 0cm;"> writeable = yes</p>
<p style="margin-bottom: 0cm;"> browseable = no</p>
<p style="margin-bottom: 0cm;">[software_livre]</p>
<p style="margin-bottom: 0cm;"> comment = Software Livre</p>
<p style="margin-bottom: 0cm;"> path = /dados/livre</p>
<p style="margin-bottom: 0cm;"> create mode = 777</p>
<p style="margin-bottom: 0cm;"> directory mode = 777</p>
<p style="margin-bottom: 0cm;"> valid users = root @professores
@alunos @formacao</p>
<p style="margin-bottom: 0cm;"> admin users = p1012 p755 p650 p894</p>
<p style="margin-bottom: 0cm;"> writeable = yes</p>
<p style="margin-bottom: 0cm;"> browseable = yes</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">SMB.CONF (LINUX CLIENT):</p>
<p style="margin-bottom: 0cm;">[global]</p>
<p style="margin-bottom: 0cm;">   workgroup = ESCOLA</p>
<p style="margin-bottom: 0cm;">   security = domain</p>
<p style="margin-bottom: 0cm;">   log file = /var/log/samba/%m.log</p>
<p style="margin-bottom: 0cm;">   max log size = 50</p>
<p style="margin-bottom: 0cm;">   wins server = <a href="http://192.168.1.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.10</a></p>
<p style="margin-bottom: 0cm;">   password server = <a href="http://192.168.1.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.10</a></p>
<p style="margin-bottom: 0cm;">   idmap uid = 16777216-33554431</p>
<p style="margin-bottom: 0cm;">   idmap gid = 16777216-33554431</p>
<p style="margin-bottom: 0cm;">   winbind enum users = yes</p>
<p style="margin-bottom: 0cm;">   winbind enum groups = yes</p>
<p style="margin-bottom: 0cm;">   template shell = /bin/false</p>
<p style="margin-bottom: 0cm;">   winbind use default domain = yes</p>
<p style="margin-bottom: 0cm;">[homes]</p>
<p style="margin-bottom: 0cm;">   comment = Home Directories</p>
<p style="margin-bottom: 0cm;">   browseable = no</p>
<p style="margin-bottom: 0cm;">   writable = yes</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">[printers]</p>
<p style="margin-bottom: 0cm;">   comment = All Printers</p>
<p style="margin-bottom: 0cm;">   path = /usr/spool/samba</p>
<p style="margin-bottom: 0cm;">   browseable = no</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">SYSTEM-AUTH (LINUX CLIENT):</p>
<p style="margin-bottom: 0cm;">#%PAM-1.0</p>
<p style="margin-bottom: 0cm;"># This file is auto-generated.</p>
<p style="margin-bottom: 0cm;"># User changes will be destroyed the
next time authconfig is run.</p>
<p style="margin-bottom: 0cm;">auth        required      pam_env.so</p>
<p style="margin-bottom: 0cm;">auth        required      pam_mount.so</p>
<p style="margin-bottom: 0cm;">auth        sufficient    pam_unix.so
nullok try_first_pass</p>
<p style="margin-bottom: 0cm;">auth        sufficient   
pam_smb_auth.so use_first_pass nolocal</p>
<p style="margin-bottom: 0cm;">auth        sufficient   
pam_winbind.so use_first_pass</p>
<p style="margin-bottom: 0cm;">auth        required      pam_deny.so</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">account     required      pam_unix.so
broken_shadow</p>
<p style="margin-bottom: 0cm;">account     sufficient   
pam_localuser.so</p>
<p style="margin-bottom: 0cm;">account     sufficient   
pam_succeed_if.so uid < 500 quiet</p>
<p style="margin-bottom: 0cm;">account     [default=bad success=ok
user_unknown=ignore] pam_winbind.so</p>
<p style="margin-bottom: 0cm;">account     required      pam_permit.so</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">password    requisite    
pam_cracklib.so try_first_pass retry=3</p>
<p style="margin-bottom: 0cm;">password    sufficient    pam_unix.so
md5 shadow nullok try_first_pass use_authtok</p>
<p style="margin-bottom: 0cm;">password    sufficient   
pam_winbind.so use_authtok</p>
<p style="margin-bottom: 0cm;">password    required      pam_deny.so</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">session     optional     
pam_mkhomedir.so skel=/etc/skel umask 0022</p>
<p style="margin-bottom: 0cm;">session     optional      pam_mount.so
use_first_pass</p>
<p style="margin-bottom: 0cm;">session     optional     
pam_keyinit.so revoke</p>
<p style="margin-bottom: 0cm;">session     required      pam_limits.so</p>
<p style="margin-bottom: 0cm;">session     [success=1 default=ignore]
pam_succeed_if.so service in crond quiet use_uid</p>
<p style="margin-bottom: 0cm;">session     required      pam_unix.so</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">PAM_MOUNT (LINUX CLIENT):</p>
<p style="margin-bottom: 0cm;">debug 0</p>
<p style="margin-bottom: 0cm;">mkmountpoint 1</p>
<p style="margin-bottom: 0cm;">fsckloop /dev/loop7</p>
<p style="margin-bottom: 0cm;">options_allow    nosuid,nodev,loop,encryption</p>
<p style="margin-bottom: 0cm;">options_require  nosuid,nodev</p>
<p style="margin-bottom: 0cm;">lsof /usr/sbin/lsof %(MNTPT)</p>
<p style="margin-bottom: 0cm;">fsck /sbin/fsck -p %(FSCKTARGET)</p>
<p style="margin-bottom: 0cm;">losetup /sbin/losetup -p0
"%(before=\"-e \" CIPHER)" "%(before=\"-k
\" KEYBITS)" %(FSCKLOOP) %(VOLUME)</p>
<p style="margin-bottom: 0cm;">unlosetup /sbin/losetup -d %(FSCKLOOP)</p>
<p style="margin-bottom: 0cm;">cifsmount /bin/mount -t cifs
//%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\"
OPTIONS)"</p>
<p style="margin-bottom: 0cm;">smbmount /bin/mount -t smbfs
//%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\"
OPTIONS)"</p>
<p style="margin-bottom: 0cm;">ncpmount /bin/mount -t ncpfs
%(SERVER)/%(USER) %(MNTPT) -o
"pass-fd=0,volume=%(VOLUME)%(before=\",\" OPTIONS)"</p>
<p style="margin-bottom: 0cm;">umount   /bin/umount %(MNTPT)</p>
<p style="margin-bottom: 0cm;">lclmount /bin/mount -p0 %(VOLUME)
%(MNTPT) "%(before=\"-o \" OPTIONS)"</p>
<p style="margin-bottom: 0cm;">cryptmount /bin/mount -t crypt
"%(before=\"-o \" OPTIONS)" %(VOLUME) %(MNTPT)</p>
<p style="margin-bottom: 0cm;">nfsmount /bin/mount %(SERVER):%(VOLUME)
"%(MNTPT)%(before=\"-o \" OPTIONS)"</p>
<p style="margin-bottom: 0cm;">mntagain /bin/mount --bind %(PREVMNTPT)
%(MNTPT)</p>
<p style="margin-bottom: 0cm;">mntcheck /bin/mount # For BSD's (don't
have /etc/mtab)</p>
<p style="margin-bottom: 0cm;">pmvarrun /usr/sbin/pmvarrun -u %(USER)
-d -o %(OPERATION)</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">volume * smb <a href="http://192.168.1.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.10</a> &
/home/&/online uid=&,dmask=0570 - -</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">I've tested with k12ltsp
5.0/k12ltsp 6.0 and Samba 3.0.23c/Samba 3.0.23d without success.
Before testing, I installed all the updates availables.</p>
<p style="margin-bottom: 0cm;">Almost everything is working well and
the system is able to create the users home directories with
pam_mkhomedir.so skel=/etc/skel umask 0022.</p>
<p style="margin-bottom: 0cm;">I tried the commands <<smbpasswd
-e p1012>> and <<pdbedit -r -c "[X ] p1012>>
without success. 
</p>
<p style="margin-bottom: 0cm;">Meanwhile, I joined with success, a
linux client  Fedora core 4.</p>
<p style="margin-bottom: 0cm;">I need an easy way to deploy terminals,
so, could you help me to find correct way to solve my problem?</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Thank You,</p>
<p style="margin-bottom: 0cm;">Carlos Carvalho</p>



</div>