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

  1. Wonderful work! This is the type of info that should be shared across the net. Disgrace on Google for now not positioning this put up higher! Come on over and talk over with my site . Thanks =)

  2. You can certainly see your enthusiasm in the article you write.
    The sector hopes for even more passionate writers such as you who aren’t
    afraid to say how they believe. At all times go
    after your heart.

  3. When I initially commented I appear to have
    clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I receive four emails with the same comment.
    There has to be an easy method you can remove me from
    that service? Appreciate it!

  4. Hey just wanted to give you a quick heads up. The words in your
    post seem to be running off the screen in Chrome.
    I’m not sure if this is a format issue or something to do with web browser compatibility but I figured I’d post
    to let you know. The layout look great though! Hope you get the issue fixed soon. Thanks

  5. Read the extended version: נערות סוכנות ליווי

  6. May I just say what a relief to find somebody who truly knows what they’re
    talking about on the web. You certainly realize how to bring an issue to light
    and make it important. A lot more people should look at this and understand this side of the story.
    I can’t believe you’re not more popular given that you most certainly possess the gift.

  7. Hi my loved one! I want to say that this post is amazing, great written and come with almost all significant infos.
    I’d like to peer more posts like this .

  8. Pretty nice post. I just stumbled upon your blog and wished
    to say that I’ve really enjoyed browsing your blog posts.
    After all I will be subscribing to your rss feed and I hope you write again very soon!

  9. After exploring a few of the blog articles on your web site,
    I really appreciate your technique of blogging. I bookmarked
    it to my bookmark webpage list and will be checking back in the near
    future. Take a look at my web site as well and let me
    know your opinion.

  10. Remarkable! Its in fact remarkable paragraph, I have got much clear idea
    on the topic of from this article.

  11. What’s Going down i am new to this, I stumbled upon this I’ve found It absolutely useful and it has helped me out loads.

    I’m hoping to give a contribution & help other customers like its aided me.

    Great job.

  12. What’s up, its nice article about media print, we
    all be familiar with media is a wonderful source of
    data.

  13. With havin so much written content do you ever run into any problems of plagorism or copyright
    infringement? My site has a lot of unique content I’ve either authored myself
    or outsourced but it seems a lot of it is popping it up all over the web without my authorization. Do you
    know any methods to help protect against content from being stolen? I’d
    truly appreciate it.

  14. No matter if some one searches for his essential thing, therefore he/she wants to be available that in detail, so that thing is maintained over
    here.

  15. aj beuka high stakes poker, chukchansi park casino and are casino winnings taxable usa,
    or best online casino in world dream (Alejandra)
    in united kingdom top reviewed

  16. new 2021 casino uk, european roulette hints uk and td australia
    visa debit gambling, or canadian which casino game
    is easy to win; Freda, guide 2021 review

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>