RoundCube 0.7.1 login failed

Note to readers: RoundCube 0.7.1 uses the Iloha IMAP Library. RoundCube 0.7.2 does not, so this particular problem may already be fixed.

In the past I’ve had to enable PLAIN IMAP authentication because older versions of M$ Outlook didn’t support CRAM-MD5 authentication. This means that my IMAP server advertises CRAM-MD5 as well as PLAIN as possible authentication methods.

All my clients who wanted to login using PLAIN cannot login using CRAM-MD5 because their passwords have to be stored in a different format.

A problem occurs when you set RoundCube’s “imap_auth_type” to “check”, because it picks CRAM-MD5 over PLAIN every time. I don’t want this to happen because some of my clients cannot login using CRAM-MD5. Ideally RoundCube should be following RFC3501:

If an AUTHENTICATE command fails with a NO response, the client MAY try another authentication mechanism by issuing another AUTHENTICATE command. It MAY also attempt to authenticate by using the LOGIN command

…but RoundCube doesn’t. To temporarily fix the problem you should be able to set “imap_auth_type” to “plain” so that RoundCube always uses PLAIN to authenticate against the IMAP server. However, I found that this does not work in 0.7.1 because of the following problem:

RoundCube passes options to the iil_Connect function of the Iloha IMAP Library. The options object includes a property “auth_method”, meant to control the authentication method, but this is never used, because the iil_Connect method expects this property to be named “imap”.

Line 382 of /program/include/rcmail.php is where the options object is defined – I simply changed ‘auth_method’ to ‘imap’.

1,721 thoughts on “RoundCube 0.7.1 login failed

  1. It’s amazing to go to see this web site and reading the views
    of all colleagues on the topic of this piece
    of writing, while I am also eager of getting familiarity.

  2. I get pleasure from, lead to I discovered just what I was having a look for.

    You have ended my four day lengthy hunt! God Bless you man. Have a great
    day. Bye

  3. For newest news you have to pay a quick
    visit world-wide-web and on web I found this site as a finest web page for hottest updates.

  4. Please let me know if you’re looking for a article writer for your weblog.
    You have some really good posts and I feel I would be a good asset.
    If you ever want to take some of the load off, I’d absolutely
    love to write some material for your blog in exchange for a link back to
    mine. Please send me an e-mail if interested. Many thanks!

  5. You could definitely see your skills within the work you
    write. The sector hopes for even more passionate writers like you who are not afraid to mention how they believe.
    Always go after your heart.

  6. This is a very good tip particularly to those new to the
    blogosphere. Short but very accurate info… Many thanks for sharing this one.
    A must read post!

  7. It’s nearly impossible to find educated people about this topic, however,
    you sound like you know what you’re talking about!
    Thanks

  8. Remarkable! Its really amazing post, I have got much clear idea about from this piece of
    writing.

  9. What’s up i am kavin, its my first occasion to
    commenting anyplace, when i read this paragraph i thought i could also create comment due to this good paragraph.

  10. Simply want to say your article is as astounding. The clarity in your post is
    just spectacular and i can assume you’re an expert on this
    subject. Fine with your permission allow me to grab your feed
    to keep updated with forthcoming post. Thanks a million and please keep up the enjoyable work.

  11. An impressive share! I have just forwarded this onto a coworker who has been conducting a little homework on this.
    And he in fact ordered me dinner due to the fact that I found it for him…
    lol. So allow me to reword this…. Thank
    YOU for the meal!! But yeah, thanx for spending time to talk
    about this matter here on your blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>