LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-27-2007, 11:56 PM   #1
limty
LQ Newbie
 
Registered: Dec 2007
Posts: 3

Rep: Reputation: 0
Samba authentication through PAM with MySQL Problem


Hi,
I have a problem with use the Samba authentication through PAM with MySQL
OS = Fedora 8
Samba = samba - 3.0.28-0.fc8.i386
Mysql = mysql - 5.0.45-6.fc8.i386
Pam-mysql = pam_mysql-0.5-1

I follow the setting like
http://www.freebsddiary.org/samba-pam.php

This two line was disable:
revalidate = No
min password length = 6

% smbclient \\\\localhost\\sample
Problem when I try to logon smbclient:
[2007/06/21 16:13:36, 0] auth/pampass.c:smb_pam_auth(534)
smb_pam_auth: PAM: UNKNOWN ERROR while authenticating user root
[2007/06/21 16:13:36, 0] auth/pampass.c:smb_pam_passcheck(809)
smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User root !

Is I have any mistake or error?
I was test long time but still cannot solve this problem
Please help me..!!!

Thank
Lim

Last edited by limty; 12-28-2007 at 12:00 AM.
 
Old 12-28-2007, 06:31 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
post
/etc/pam.d/samba
 
Old 12-31-2007, 07:54 AM   #3
limty
LQ Newbie
 
Registered: Dec 2007
Posts: 3

Original Poster
Rep: Reputation: 0
The pam.d/samba file I use is like this

Quote:
Originally Posted by comprookie2000 View Post
post
/etc/pam.d/samba
samba auth required /lib/security/pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

samba account required /lib/security/pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

samba password required /lib/security/pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

samba session required /lib/security/pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

or

samba auth required pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

samba account required pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

samba password required pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

samba session required pam_mysql.so user=root passwd=secretpw db=samba_auth table=users usercolumn=login crypt=1

was Try

regard
Lim
 
  


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
Pam Authentication problem combatwombat Linux - Security 3 09-07-2007 07:32 AM
rsh problem - PAM authentication failed for in.rlogind davey123 Linux - Security 0 12-05-2005 11:24 AM
pam and ldap authentication problem abrb220 Linux - Networking 2 07-31-2005 03:49 PM
PAM/Kerberos authentication problem hmartin216 Linux - Security 2 03-11-2005 09:28 PM
samba and remote PAM authentication chupacabra Linux - General 2 11-08-2002 12:02 PM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
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