[Nottingham] samba/pam

Mike Cardwell mike at blubbernet.com
Sat Jan 1 21:10:59 GMT 2005


On Sat, 1 Jan 2005, Simon Amor wrote:

>> session required pam_mysql.so user=USERNAME passwd=PASSWORD host=LOCALHOST
>> db=DATABASE usercolumn=user_id crypt=2 passwdcolumn=password table=user
>> The password column in the database holds passwords that were encrypted 
>> using the MySQL PASSWORD() function.
> Are you sure that the passwords in MySQL from PASSWORD() are the same format 
> as those generated by pam_mysql with crypt=2 set? It looks to me like it's 
> simply the passwords compared are different.

Yeah. I found it in a couple of examples. Apparently:

0 = plain text
1 = crypt
2 = MySQL PASSWORD() function

I tried all three anyway just in case, and none of them worked.

-- 
Digital photo printing:
http://www.fotoserve.com/?affiliate_id=1093871459



More information about the Nottingham mailing list