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

2,015 thoughts on “RoundCube 0.7.1 login failed

  1. I was suggested this website by my cousin. I’m no longer sure
    whether or not this publish is written by means of him as
    no one else realize such unique about my problem. You’re incredible!
    Thanks!

  2. I’ve been surfing online more than three hours as of late, yet I by no means discovered any interesting article like yours.
    It is beautiful price sufficient for me. In my opinion, if all site owners and bloggers made excellent content material as you did, the web shall be much more useful than ever before.

  3. I have been exploring for a bit for any high quality articles or weblog posts in this sort of area .
    Exploring in Yahoo I eventually stumbled upon this web site.
    Studying this information So i’m satisfied to express that I have an incredibly just right uncanny feeling I discovered exactly what I needed.
    I so much definitely will make sure to do not put out of your mind this
    site and provides it a glance regularly.

  4. Thanks for the helpful content. It is also my opinion that mesothelioma has an really long latency phase, which means that signs and symptoms of the disease might not emerge right up until 30 to 50 years after the original exposure to asbestos fiber. Pleural mesothelioma, that’s the most common style and affects the area around the lungs, might result in shortness of breath, chest pains, and also a persistent cough, which may bring about coughing up body.

  5. What i do not understood is in fact how you’re now not really much more neatly-liked than you might be now.
    You’re very intelligent. You know therefore significantly
    when it comes to this matter, produced me in my opinion consider it from
    so many numerous angles. Its like women and men don’t seem to be fascinated except it is something to do with
    Woman gaga! Your personal stuffs excellent.
    At all times handle it up!

  6. Hey There. I discovered your weblog using msn. That is a very well written article.

    I’ll make sure to bookmark it and return to read more of your useful
    information. Thank you for the post. I will certainly return.

  7. Good day! Would you mind if I share your blog with my twitter group?
    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Thanks

  8. E o Mahjong Ways 2 que meteu um Jackpot do nada? Isso não é um jogo, é uma mãe! Levei 10k!

  9. Thanks for a marvelous posting! I seriously enjoyed reading it, you can be a
    great author. I will ensure that I bookmark
    your blog and definitely will come back at some point.
    I want to encourage you to ultimately continue your great
    posts, have a nice weekend!

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>