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

6,230 thoughts on “RoundCube 0.7.1 login failed

  1. аренда авто в аэропорту пхукет таиланд пхукет аренда авто

  2. You ought to be a part of a contest for one of the finest blogs on the internet.
    I most certainly will highly recommend this blog!

  3. купить экскурсию на пхукете экскурсии на пхукете цены

  4. сервисы для накрутки пф пф в яндексе накрутка

  5. I know this web site presents quality based content and additional
    stuff, is there any other web page which gives these kinds of stuff in quality?

  6. Today, I went to the beachfront with my kids.
    I found a sea shell and gave it to my 4 year old daughter and said
    “You can hear the ocean if you put this to your ear.” She put the shell
    to her ear and screamed. There was a hermit crab inside and
    it pinched her ear. She never wants to go back!
    LoL I know this is entirely off topic but I had
    to tell someone!

  7. Every weekend i used to pay a visit this web site, because i wish
    for enjoyment, since this this site conations in fact fastidious funny material too.

  8. wonderful issues altogether, you simply received a brand new reader.

    What could you recommend in regards to your publish that you simply
    made a few days in the past? Any positive?

  9. Do you mind if I quote a few of your posts as
    long as I provide credit and sources back to your weblog?
    My blog is in the very same area of interest as yours and
    my users would really benefit from some of the information you present here.

    Please let me know if this okay with you. Thanks a lot!

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>