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

  1. Woah! I’m really loving the template/theme
    of this blog. It’s simple, yet effective. A lot of times it’s tough to
    get that “perfect balance” between superb usability and visual
    appeal. I must say you’ve done a very good job with this.
    Also, the blog loads very quick for me on Chrome. Exceptional Blog!

  2. Hmm is anyone else having problems with the images on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any suggestions would be greatly appreciated.

  3. Hey there! I know this is kinda off topic nevertheless I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest writing
    a blog post or vice-versa? My blog discusses a lot of the same topics as yours and I think we could
    greatly benefit from each other. If you might be interested feel free to shoot me an email.
    I look forward to hearing from you! Awesome blog by the way!

  4. I’ve been exploring for a little for any high quality articles or weblog posts in this kind of space .
    Exploring in Yahoo I at last stumbled upon this web site.
    Studying this information So i am happy to express that I’ve an incredibly just right uncanny
    feeling I discovered exactly what I needed. I so much surely will make certain to do not omit this web site
    and give it a glance on a continuing basis.

  5. Great post. I was checking constantly this blog and I am impressed!
    Very useful info specially the last part :) I care for such information much.
    I was looking for this particular information for a long time.

    Thank you and good luck.

  6. My brother suggested I might like this website. He was entirely right.
    This post actually made my day. You can not imagine just how much time I had spent for this info!

    Thanks!

  7. Hello i am kavin, its my first occasion to commenting anywhere,
    when i read this piece of writing i thought i could also create comment due
    to this sensible article.

  8. Nice post. I used to be checking continuously this blog and
    I’m inspired! Very helpful information particularly the last
    phase :) I handle such information a lot. I was seeking this
    particular information for a very lengthy time. Thanks and best of luck.

  9. An impressive share! I have just forwarded this
    onto a colleague who had been doing a little research on this.
    And he in fact ordered me breakfast due to the fact that
    I stumbled upon it for him… lol. So let me reword this….
    Thanks for the meal!! But yeah, thanx for spending time to talk about
    this topic here on your web page.

  10. Excellent site. Plenty of helpful information here.
    I’m sending it to some pals ans also sharing in delicious.
    And obviously, thanks for your sweat!

  11. You made some good points there. I checked on the
    net to learn more about the issue and found most individuals
    will go along with your views on this web site.

  12. I think this is one of the most important information for me.
    And i’m glad reading your article. But wanna remark on few general things, The web
    site style is perfect, the articles is really great : D.
    Good job, cheers

  13. Hey are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and
    create my own. Do you need any html coding expertise to make your own blog?
    Any help would be really appreciated!

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>