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

  1. I blog often and I genuinely thank you for your content.
    This article has really peaked my interest. I am going to take a note
    of your site and keep checking for new information about once a week.

    I subscribed to your RSS feed as well.

  2. It is perfect time to make a few plans for the long run and it is time to be happy. I’ve learn this publish and if I may just I want to recommend you few fascinating things or advice. Perhaps you can write subsequent articles referring to this article. I wish to learn more things approximately it!

  3. Good day! I could have sworn I’ve visited
    your blog before but after looking at some of the posts I realized it’s new to me.
    Anyways, I’m definitely happy I stumbled upon it and I’ll be bookmarking
    it and checking back often!

  4. Just desire to say your article is as astounding.
    The clearness for your put up is simply cool and that i could think you’re knowledgeable in this subject.
    Well with your permission allow me to clutch your RSS feed to stay up to date
    with imminent post. Thanks 1,000,000 and please carry on the enjoyable
    work.

  5. I’m not sure where you’re getting your information, but
    good topic. I needs to spend some time learning much more or understanding more.
    Thanks for fantastic information I was looking for this information for my mission.

  6. That is really attention-grabbing, You are an excessively professional blogger.
    I have joined your feed and look ahead to
    looking for more of your fantastic post.
    Additionally, I’ve shared your site in my social networks

  7. The best for you: Egypt Antiquities Information

  8. I have learn a few excellent stuff here.
    Certainly value bookmarking for revisiting. I surprise how so much attempt you set to create the sort of magnificent
    informative web site.

  9. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your website? My website is in the exact same area of interest as yours and my visitors would definitely benefit from some of the information you present here. Please let me know if this okay with you. Thank you!

  10. I feel this is one of the so much significant information for me.
    And i am satisfied studying your article. However
    want to observation on few basic issues, The web site style is wonderful,
    the articles is really nice : D. Good task, cheers

  11. Excellent way of telling, and fastidious article to obtain facts on the
    topic of my presentation subject, which i am going to deliver in institution of higher education.

  12. Great blog here! Also your website loads up fast! What host
    are you using? Can I get your affiliate link
    to your host? I wish my site loaded up as quickly as yours lol

  13. Howdy just wanted to give you a quick heads up.
    The words in your content seem to be running off the screen in Internet explorer.
    I’m not sure if this is a formatting 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. Many thanks

  14. You can certainly see your skills in the work you write.
    The sector hopes for more passionate writers such as
    you who aren’t afraid to mention how they believe. Always follow your heart.

  15. Thanks , I have recently been looking for info about this
    topic for a long time and yours is the greatest I’ve found out till now.
    However, what in regards to the conclusion? Are you positive in regards to the source?

  16. Hey there, You have done a fantastic job. I will certainly digg it and personally recommend to my friends.
    I am confident they’ll be benefited from this website.

  17. Хотите учиться не выходя из дома? онлайн курсы по английскому от YES Center подходят и взрослым и детям. Современная платформа продуманная программа и обратная связь от педагога делают обучение эффективным и комфортным. Старт групп каждый месяц.

  18. These are really great ideas in about blogging.

    You have touched some fastidious things here. Any way keep up wrinting.

  19. Having read this I believed it was extremely enlightening.
    I appreciate you taking the time and energy to put this information together.

    I once again find myself spending a significant amount of time
    both reading and commenting. But so what, it was
    still worthwhile!

  20. What’s up mates, fastidious article and fastidious arguments commented at this place, I
    am in fact enjoying by these.

  21. Hi! I could have sworn I’ve visited this website before but after looking at a few of
    the posts I realized it’s new to me. Regardless, I’m
    certainly pleased I came across it and I’ll
    be bookmarking it and checking back regularly!

  22. My family members always say that I am killing
    my time here at net, but I know I am getting know-how every day by reading thes good posts.

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>