Auth problems with cyrus + sasl + ldap

Bug #24197 reported by Tiziano Tissino
14
Affects Status Importance Assigned to Milestone
cyrus21-imapd (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Friday I upgraded my server to breezy. After that, I got problems with
authentication in cyrus/imap.
I'm using sasl to authenticate clients; in turn, sasl use pam_ldap.
Before upgrade all worked fine; after, sometimes auth succeeded while other
times failed.

Finally, I discovered where was the problem: each instance of imapd correctly
authenticate only its first connection. All subsequent connections will get a
'badlogin' reply, like that row, grepped from /var/log/syslog:

Oct 17 11:25:04 localhost cyrus/imapd[20650]: badlogin:
net84-253-166-106.mclink.it[84.253.166.106] plaintext ece SASL(-13): user not
found: checkpass failed

So, I set my /etc/cyrus.conf with lines like this one:
imaps cmd="imapd -s -U 1" listen="imaps" prefork=0 babysit=5
where the -U flag tells imapd to use each instance for one connection only and
then exit.

Doing this, things goes better: connection now don't crash, even if from time to
time, I get on my syslog lines these ones:
Oct 18 18:30:52 localhost cyrus/imapd[19506]: starttls: TLSv1 with cipher
AES256-SHA (256/256 bits new) no authentication
Oct 18 18:31:00 localhost cyrus/imapd[19506]: badlogin:
net84-253-166-106.mclink.it[84.253.166.106] plaintext lte SASL(-13):
authentication failure: checkpass failed
Oct 18 18:31:16 localhost cyrus/imapd[19506]: login:
net84-253-166-106.mclink.it[84.253.166.106] lte plaintext+TLS

That 'badlogin', however, seems not to cause problems to the connection (except
some delay...)

Revision history for this message
Matt Zimmerman (mdz) wrote :

Matthias, is this possibly? related to your gnutls fix?

Revision history for this message
Matthias Urlichs (smurf) wrote :

At first glance this does not seem to be directly related to the code affected
by my fix.

I would like to test that against the server which the original bug reporter used,
but that is not mentioned in the log. :-/

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Sorry, I just dup'ed this in 38318.
I'm having the exact same problem, with the same workaround in place on a Breezy system.

Please fix this :)

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

You may find some of the details of my submission 38318 helpful, as they include additional information to this one. Also, if you need testing to be done, I'm willing to help.

Thanks,
Matt
matt<@>eisgr.com

Changed in cyrus21-imapd:
status: Unconfirmed → Confirmed
Tollef Fog Heen (tfheen)
Changed in cyrus21-imapd:
assignee: tfheen → nobody
Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Any news on this ?

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for posting this bug.

Gutsy is in End of Life status. Please update and repost detailed error report.

Changed in cyrus21-imapd (Ubuntu):
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.