Simple Samba and PAM -> NT_STATUS_LOGON_FAILURE
I'm using Debian Woody and keep getting the following with all users:
spawn@bambi ~ $ smbclient -L sin.khk.be
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
I figured this has something to do with pam and samba configuration:
smb.conf:
[global]
panic action = /usr/share/samba/panic-action %d
workgroup = SIN
netbios name = bambi
server string = Student Information Networking
invalid users = root
security = user
wins support = no
log file = /var/log/samba.log
max log size = 1000
log level = 2
syslog = 0
# encrypt passwords = true
passdb backend = tdbsam guest
socket options = TCP_NODELAY
dns proxy = no
passwd program = /usr/bin/passwd %u
passwd chat =*Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
obey pam restrictions = yes
pam password change = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
create mask = 0700
directory mask = 0700
Log of Samba:
[2005/01/12 23:42:20, 2] smbd/reply.c:reply_special(242)
netbios connect: local=sin.student remote=bambi, name type = 0
[2005/01/12 23:42:20, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password: Authentication for user [spawn] -> [spawn] FAILED with error NT_STATUS_WRONG_PASSWORD
[2005/01/12 23:42:20, 2] smbd/server.c:exit_server(571)
Closing connections
[2005/01/12 23:42:26, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password: Authentication for user [spawn] -> [spawn] FAILED with error NT_STATUS_WRONG_PASSWORD
[2005/01/12 23:42:26, 2] smbd/server.c:exit_server(571)
Closing connections
PAM config:
pam.d/samba:
@include common-auth
@include common-account
@include common-session
pam.d/common-auth:
auth required pam_unix.so nullok_secure
pam.d/common-account:
account required pam_unix.so
pam.d/common-session:
session required pam_unix.so
All I want is just to connect with samba, and let it use /etc/passwd as passwords database with pam insted of smbpasswd. I can find thousands of guides for winbind + PAM + AD etc.. but I don't want that, just one passwd file for samba and shell logins.
Does anyone have a solution or a simple guide for this ?
|