Re: Problem with pam_mysql, saslauthd and ONLY imap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx -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@xxxxxxxxxxxxx] [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? :) :) :)

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux