#27 add conditions in where request

open
nobody
None
5
2009-11-18
2009-11-18
jes18
No

hello,
i use pam_mysql-0.6.2 with vsftpd.
with the original version we can't authenticate user with multiple condition
we have modified the pam_mysql.c to accept 3 conditions like:
account required pam_mysql.so user=vsftpd passwd=xxxxxxx host=localhost db=xxxxxxxx table=users usercolumn0=name usercolumn1=email passwdcolumn=password crypt=2 where=users.status=3&&(users.access_type=3||users.access_type=1)

can you add the same in the future version ?
thanks for your help

Discussion

  • jes18
    jes18
    2009-11-18

    pam_mysql-0.6.2 modified

     
    Attachments