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,405 thoughts on “RoundCube 0.7.1 login failed

  1. Great work! This is the type of information that should be
    shared across the internet. Shame on the seek engines for no longer positioning this
    post upper! Come on over and discuss with my site . Thank you =)

  2. wettanbieter deutschland ohne oasis

    Feel free to surf to my web page :: wetten prognosen heute (Joe)

  3. hello there and thank you on your information ? I have definitely picked up anything new from right here. I did on the other hand experience some technical points using this website, since I skilled to reload the web site lots of occasions previous to I may just get it to load correctly. I had been pondering if your web hosting is OK? No longer that I am complaining, but sluggish loading instances occasions will often impact your placement in google and can injury your high quality rating if ads and ***********|advertising|advertising|advertising and *********** with Adwords. Anyway I?m adding this RSS to my email and can look out for a lot extra of your respective interesting content. Make sure you replace this again very soon..

  4. whoah this blog is wonderful i love reading your posts. Keep up the great work! You know, many people are searching around for this info, you could aid them greatly.

  5. Thank you for every other informative blog. Where else could I am getting that type of information written in such a perfect method?
    I have a mission that I am just now running on, and I’ve been on the glance out for
    such information.

  6. I?d have to verify with you here. Which is not one thing I often do! I get pleasure from studying a put up that can make folks think. Additionally, thanks for allowing me to remark!

  7. Wow! This blog looks exactly like my old one! It’s on a completely different topic but it has pretty much the same layout and design. Superb choice of colors!

  8. I love your blog.. very nice colors & theme.
    Did you design this website yourself or did you hire someone to do it for you?

    Plz respond as I’m looking to create my own blog and would like to
    know where u got this from. thanks a lot

  9. It is the best time to make a few plans for the future and
    it is time to be happy. I’ve learn this put up and if I may just I
    desire to recommend you few fascinating issues or suggestions.

    Maybe you could write subsequent articles relating to this article.
    I wish to read even more issues approximately it!

  10. Hi mates, how is everything, and what you wish for to say
    concerning this post, in my view its actually awesome for me.

  11. Way cool! Some extremely valid points! I appreciate you
    penning this write-up and the rest of the website is really good.

  12. My spouse and I stumbled over here coming from a different website and thought I might check things out.
    I like what I see so i am just following you. Look forward to looking over
    your web page for a second time.

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>