[Samba] pam auth with mysql

Lukas Pataki debian at comkay.com
Sat Jan 15 11:06:05 GMT 2005


hi list,


since, days i´m trying to auth. samba users with pam using mysql
without any result
this is my /etc/pam.d/samba:

#@include common-auth
#@include common-account
#@include common-session
auth     required    pam_mysql.so   user=root passwd=** db=samba table=users usercolumn=login passwdcolumn=password crypt=1
account  required    pam_mysql.so   user=root passwd=**  db=samba table=users usercolumn=login passwdcolumn=password crypt=1
password required    pam_mysql.so   user=root passwd=**  db=samba table=users usercolumn=login passwdcolumn=password crypt=1
session  required    pam_mysql.so   user=root passwd=**  db=samba table=users usercolumn=login passwdcolumn=password crypt=1

i see that pam is doing the right mysq_query
"SELECT password FROM users WHERE login='root'" 
but  i alwas getting a an error:
session setup failed: NT_STATUS_LOGON_FAILURE

without the mysql_auth in pam samba is working fine.

isn´t a solution for this?

thx
luke





More information about the samba mailing list