Hi,<br>im running a cyrus murder cluster that access a mysql Table for authentification,<br>i just switched to the pam_mysql module because we need hashed passwords in the DB.<br>When I try to login with an email address as username PAM cuts of everything after the "@".<br>
Login works fine with an account that has a crypted pasword and no domain attached<br>Where can i define the query for PAM?<br><br><br>cyradm --user <a href="mailto:joe@test.local">joe@test.local</a> --server frontend --auth PLAIN<br>
<br>the statement <br>SELECT password FROM users WHERE email = 'joe'<br><br>some logfile entries:<br><br>do_auth         : auth failure: [user=joe] [service=imap] [realm=plusser.local] [mech=pam] [reason=PAM auth error]<br>
badlogin: frontend [<a href="http://192.168.247.128">192.168.247.128</a>] plaintext <a href="mailto:joe@test.local">joe@test.local</a> SASL(-13): authentication failure: checkpass failed<br><br>/etc/pam.d/imap<br><br>#%PAM-1.0<br>
#auth       include      system-auth<br>#account    include      system-auth<br><br>auth       sufficient   pam_mysql.so user=mail_admin passwd=pwd_mail host=localhost db=mail table=users usercolumn=email passwdcolumn=password crypt=1<br>
#logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time<br>auth       sufficient   pam_unix_auth.so<br><br>account    required     pam_mysql.so user=mail_admin passwd=pwd_mail host=localhost db=mail table=users usercolumn=email passwdcolumn=password crypt=1<br>
# logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time<br>account    sufficient   pam_unix_acct.so<br><br><br>/etc/imapd.conf(cut)<br><br>allowplaintext: yes<br>sasl_mech_list: PLAIN LOGIN<br>
sasl_pwcheck_method: saslauthd<br>saslauthd_path: /var/run/saslauthd/mux<br><br><br>thanks<br>