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’.

4,260 thoughts on “RoundCube 0.7.1 login failed

  1. I think this is among the most important information for me.
    And i’m glad reading your article. But wanna remark on some general things, The site style is ideal, the articles
    is really excellent : D. Good job, cheers

  2. I am not sure where you’re getting your information, but good topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for fantastic info I was looking for this info for
    my mission.

  3. Thanks for another excellent article. Where else may anyone get
    that type of information in such a perfect means of writing?

    I’ve a presentation next week, and I’m on the look for such info.

  4. Paragraph writing is also a excitement, if you be familiar
    with then you can write otherwise it is complex
    to write.

  5. Hey would you mind sharing which blog platform you’re working with?
    I’m planning to start my own blog in the near future but I’m having a difficult time
    making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems different
    then most blogs and I’m looking for something completely unique.
    P.S Apologies for getting off-topic but I had to ask!

  6. I’ve learn a few good stuff here. Certainly worth bookmarking for revisiting.
    I surprise how a lot effort you put to make one of these fantastic
    informative website.

  7. I really love your website.. Great colors & theme. Did you build
    this site yourself? Please reply back as I’m planning to create
    my own site and want to find out where you got this from or just what the theme is
    named. Many thanks!

  8. I think this is among the most vital info for me.
    And i’m glad reading your article. But should remark on some general
    things, The web site style is great, the articles is
    really great : D. Good job, cheers

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>