pam_mysql problem so important

rm-eksi-rf rm-eksi-rf rmeksirf at gmail.com
Tue May 3 12:20:04 UTC 2005


Hi, I have a problem, when I configurated postfix, I use pam_mysql
module. this module cannot come with redhat, I had downloaded. But
although I had added /etc/pam/imap.conf

auth required /lib/security/pam_mysql.so user=mail passwd=secret
host=localhost db=mail table=accountuser usercolumn=username  
passwdcolumn=password crypt=1

#auth sufficient pam_unix_auth.so

account required /lib/security/pam_mysql.so user=mail passwd=secret
host=localhost db=mail table=accountuser usercolumn=username
passwdcolumn=password   crypt=1

Still when I tried testsaslauth , I had got same error , 

testsaslauthd -u cyrus -p deneme
0: NO "authentication failed"

tail -f /var/log/messeges:

May  3 15:21:23 space saslauthd[11878]: pam_sm_authenticate called.
May  3 15:21:23 space saslauthd[11878]: dbuser changed.
May  3 15:21:23 space saslauthd[11878]: dbpasswd changed.
May  3 15:21:23 space saslauthd[11878]: host changed.
May  3 15:21:23 space saslauthd[11878]: database changed.
May  3 15:21:23 space saslauthd[11878]: table changed.
May  3 15:21:23 space saslauthd[11878]: usercolumn changed.
May  3 15:21:23 space saslauthd[11878]: passwdcolumn changed.
May  3 15:21:23 space saslauthd[11878]: crypt changed.
May  3 15:21:23 space saslauthd[11878]: db_connect  called.
May  3 15:21:23 space saslauthd[11878]: returning 0 .
May  3 15:21:23 space saslauthd[11878]: db_checkpasswd called.
May  3 15:21:23 space saslauthd[11878]: pam_mysql: where clause =
May  3 15:21:23 space saslauthd[11878]: SELECT password FROM
accountuser WHERE username='cyrus'
May  3 15:21:23 space saslauthd[11878]: pam_mysql: select returned an
invalid encrypted password
May  3 15:21:23 space saslauthd[11878]: returning 7 .
May  3 15:21:23 space saslauthd[11878]: returning 7 after db_checkpasswd.
May  3 15:21:23 space saslauthd[11878]: do_auth         : auth
failure: [user=cyrus] [service=imap] [realm=] [mech=pam] [reason=PAM
auth error]

Please help, how can get rid of this error messages?




More information about the redhat-list mailing list