Problem with pam_mysql, saslauthd and ONLY imap

Egoitz Aurrekoetxea egoitz at gmail.com
Mon Sep 15 09:12:15 EDT 2008


Hi!!

I have reinstalled the whole testing machine trying to solve the problem
(with the same config files)... but no way... pop and smtp work but not
IMAP.... smtpd.conf file (of /usr/local/lib/sasl2) constains :

pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

just this....


and if I use pop3test or smtptest... checks are ok and I can logon... but...
look with imtest :

correopiloto# imtest  -aegoitz at ramattack.net -mplain
WARNING: no hostname supplied, assuming localhost

S: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] server
ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR ACL
RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME
UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT
THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE SCAN IDLE URLAUTH
S: C01 OK Completed
Please enter your password:
C: A01 AUTHENTICATE PLAIN AGVnb2l0ekByYW1hdHRhY2submV0ADA1MDIwNQ==
S: A01 NO authentication failure
Authentication failed. generic failure
Security strength factor: 0
quit
* BAD Invalid tag
./ logout
* BYE LOGOUT received
./ OK Completed
Connection closed.



In auth.log we can see :

Sep 15 14:00:54 correopiloto imap[835]: sql_select option missing
Sep 15 14:00:54 correopiloto imap[835]: auxpropfunc error no mechanism
available
Sep 15 14:00:57 correopiloto saslauthd[488]: do_auth         : auth failure:
[user=egoitz at ramattack.net] [service=imap] [realm=ramattack.net] [mech=pam]
[reason=PAM auth error]

In messages :

Sep 15 14:02:40 correopiloto imap[835]: badlogin: localhost [127.0.0.1]
PLAIN [SASL(-13): authentication failure: Password verification failed]


In debug :

Sep 15 14:02:40 correopiloto saslauthd[487]: DEBUG: auth_pam:
pam_authenticate failed: authentication error

the pam.d files (imap, pop and smtp are the three the same)

correopiloto# more imap
auth    required   /usr/local/lib/pam_mysql.so user=pruebas passwd=pruebas
host=127.0.0.1 db=mail table=usuarios usercolumn=email passwdcolumn=clave
crypt=0
account sufficient /usr/local/lib/pam_mysql.so user=pruebas passwd=pruebas
host=127.0.0.1 db=mail table=usuarios usercolumn=email passwdcolumn=clave
crypt=0

Any ideas mates? :) :) :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080915/a3125cca/attachment-0001.html 


More information about the Info-cyrus mailing list