hi guys,

I'm trying to use mysql with samba to authenticate users. The fist
thing I've tryed was passdb wich one is very useful except that I
can't personalize the querys but that's not a problem since I could
make my needed changes at pdb_sql.c
Well after trying for a while I saw that I can't use crypt password
with this auth method but just nt password, lan manager password and
plain password (which one I'm using now).
The problem is that this database is used for such other things like
courier-imap and this one could support crypt passwords.
Looking around I saw that I could use crypt password with pam + mysql
and I decide to give it a try but I can't make pam to work.
Actually I think the problem is with passdb parameter wich one I don't
know what to put since I didn't seen any parameter that could match
pam.
I did try to comment passdb parameter but if I try it nor password
verification is done.

That's my pam.d/samba file where we can see I'm using plain password (crypt=0):
auth required pam_mysql.so user=USERNAME passwd=PASSWORD host=LOCALHOST
db=DATABASE usercolumn=user_id crypt=0 passwdcolumn=password table=user
account required pam_mysql.so user=USERNAME passwd=PASSWORD host=LOCALHOST
db=DATABASE usercolumn=user_id crypt=0 passwdcolumn=password table=user
password required pam_mysql.so user=USERNAME passwd=PASSWORD
host=LOCALHOST
db=DATABASE usercolumn=user_id crypt=0 passwdcolumn=password table=user
session required pam_mysql.so user=USERNAME passwd=PASSWORD host=LOCALHOST
db=DATABASE usercolumn=user_id crypt=0 passwdcolumn=password table=user 

what I want is to use crypt password with mysql. I don't know if is
there a way to do it without make more changes to passdb source code
or if I could pass some parameter identifying that I'm using pam
instead of other auth methods, so any suggestion would be appreciated.

Tks in advice,

Claudinei Matos

-- 
gentoo-user@gentoo.org mailing list

Reply via email to