LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-12-2005, 05:49 PM   #1
subspawn
LQ Newbie
 
Registered: Dec 2004
Location: Belgium, Antwerp
Distribution: Slackware, Debian
Posts: 5

Rep: Reputation: 0
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 ?
 
Old 01-17-2005, 08:41 AM   #2
subspawn
LQ Newbie
 
Registered: Dec 2004
Location: Belgium, Antwerp
Distribution: Slackware, Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Nvm. I found the problem:
obey pam restrictions = yes

should be
obey pam restrictions = no

and everything works perfectly, using the /etc/passwd database
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba NT_STATUS_LOGON_FAILURE...Help please nikd Linux - Networking 5 01-14-2010 01:25 AM
Samba has NT_STATUS_LOGON_FAILURE dwynter Linux - Networking 22 12-16-2007 03:01 PM
NT_STATUS_LOGON_FAILURE Samba Problem jmvetter Linux - Software 0 10-11-2004 12:18 AM
SAMBA:NT_STATUS_LOGON_FAILURE on linux Tyir Linux - Networking 4 12-23-2003 12:24 AM
SAMBA error: NT_STATUS_LOGON_FAILURE kkempter Linux - Software 0 06-04-2003 04:09 PM


All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration