Bug 212816 - mutt fails to authenticate with latest cyrus-sasl
Summary: mutt fails to authenticate with latest cyrus-sasl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mutt
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact:
URL: http://bugs.mutt.org/cgi-bin/gnatsweb...
Whiteboard:
Depends On:
Blocks: 213271
TreeView+ depends on / blocked
 
Reported: 2006-10-29 11:02 UTC by Ferdinand
Modified: 2014-07-29 10:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-29 10:50:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ferdinand 2006-10-29 11:02:38 UTC
When trying to get pop mail with mutt (1.4.2.2-3), sasl authentication will
always fail.  This is due to a change in cyrus-sasl version 2.1.22, as described
in mutt bug 2478. (Open URL, log in with user:guest pass:guest to see it.)

The patch the mutt devs have applied to fix this is here (CVS HEAD):
http://dev.mutt.org/cgi-bin/viewcvs.cgi/mutt/pop_auth.c?r1=3.7&r2=3.8

This patch to pop_auth.c is hard to backport however, because of another patch 
in the mutt src rpm: mutt-1.4-sasl2.patch. But the part that matters is:

-sasl_decode64 (inbuf, strlen (inbuf), buf, LONG_STRING-1, &len) != SASL_OK)
+sasl_decode64 (inbuf+2, strlen (inbuf+2), buf, LONG_STRING-1, &len) != SASL_OK)

I removed the leading spaces and && here to fit it on one line.
I think the other changes in their fix are to "enable SASL plaintext:
$foo_authenticators [as] a more general solution" as their cvs log says.

Since the equivalent line in 1.4 is also altered by the sasl2 patch I'm not sure
how to propose a patch, in fact I tested this fix by editing the sasl2 patch.
Anyway, add '+2' to both 'inbuf's in that line and sasl auth will work again.

Comment 1 Miroslav Lichvar 2006-10-31 15:48:51 UTC
Fixed in mutt-1.4.2.2-4.fc6. Thanks.

Comment 2 Fedora Update System 2006-10-31 19:53:57 UTC
mutt-1.4.2.2-4.fc6 has been pushed for fc6, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.

Comment 3 jpacner 2014-07-23 14:07:21 UTC
List of patches present on mutt-1.5.20-6.20091214hg736b6a.el6:
http://pkgs.devel.redhat.com/cgit/rpms/mutt/commit/?h=rhel-6.6&id=5e5acce3e9664eb459e94bbacfedb071d51bb888

Comment 4 jpacner 2014-07-29 10:50:25 UTC
Recovering unwanted changes caused by a badly chosen bug number choice.


Note You need to log in before you can comment on or make changes to this bug.