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

  1. I was recommended this web site by my cousin. I am now not sure whether this
    put up is written by means of him as no one else recognise such certain about my difficulty.
    You’re incredible! Thanks!

  2. It’s a pity you don’t have a donate button! I’d without a doubt donate to this excellent
    blog! I suppose for now i’ll settle for bookmarking
    and adding your RSS feed to my Google account. I look forward to
    new updates and will share this website with my Facebook group.
    Talk soon!

  3. Hello mates, how is everything, and what you want
    to say about this post, in my view its in fact amazing for me.

  4. No matter if some one searches for his necessary thing, thus he/she needs to be available that in detail, therefore
    that thing is maintained over here.

  5. At this time I am going to do my breakfast,
    after having my breakfast coming yet again to read more news.

  6. Wow! This blog looks just like my old one! It’s on a completely different subject but it has pretty much the same layout and design.
    Outstanding choice of colors!

  7. certainly like your web-site but you have to take a look at the spelling on several of your posts.

    Many of them are rife with spelling problems and I to find
    it very troublesome to inform the reality then again I’ll surely come
    back again.

  8. Thank you for sharing your thoughts. I truly appreciate your efforts and I will be waiting
    for your further post thanks once again.

  9. Someone essentially assist to make significantly articles I might state.
    That is the very first time I frequented your web page and so far?
    I amazed with the research you made to make this particular post incredible.
    Fantastic process!

  10. Hello, I think your site might be having browser compatibility issues.
    When I look at your website in Opera, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, fantastic blog!

  11. I like the valuable info you provide in your articles.
    I’ll bookmark your weblog and check again here regularly.
    I am quite certain I will learn a lot of new stuff right here!

    Best of luck for the next!

  12. This is the perfect blog for anyone who really wants to
    understand this topic. You know so much its almost tough to
    argue with you (not that I really will need to…HaHa).

    You definitely put a fresh spin on a subject that’s been written about for decades.
    Excellent stuff, just excellent!

  13. certainly like your web-site but you need to test the spelling on several of
    your posts. Several of them are rife with spelling issues and I in finding
    it very bothersome to inform the truth then again I will certainly come
    again again.

  14. Very nice post. I simply stumbled upon your blog and wanted to say that I have really enjoyed browsing your weblog posts.
    In any case I will be subscribing for your feed and I am
    hoping you write again soon!

  15. I simply couldn’t leave your website before suggesting that I really enjoyed the usual information an individual provide on your visitors?
    Is gonna be again often to check up on new posts

  16. Asking questions are really fastidious thing if you
    are not understanding anything entirely, but this article provides fastidious
    understanding even.

  17. Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I get
    actually enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently quickly.

  18. Excellent items from you, man. I’ve understand your stuff previous to and you are
    simply too fantastic. I actually like what you’ve acquired here, certainly like what
    you are saying and the way in which in which you
    assert it. You’re making it enjoyable and you still take care of to keep it smart.
    I can not wait to read far more from you. That is really a wonderful website.

  19. Hello I am so happy I found your weblog, I really found you by accident, while I was researching on Bing for something else,
    Regardless I am here now and would just like to say thanks a lot for a tremendous
    post and a all round interesting blog (I also love the theme/design), I
    don’t have time to read through it all at the
    moment but I have bookmarked it and also added your RSS feeds,
    so when I have time I will be back to read a
    great deal more, Please do keep up the excellent work.

  20. Hello everyone, it’s my first pay a quick visit at this site, and piece
    of writing is really fruitful in favor of me, keep up posting such articles or reviews.

  21. This design is steller! You most certainly know how to keep a
    reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really enjoyed what you had to say, and more than that, how you
    presented it. Too cool!

  22. Hey I know this is off topic but I was wondering if you knew of any
    widgets I could add to my blog that automatically tweet my newest twitter
    updates. I’ve been looking for a plug-in like this for quite some time and was hoping
    maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy
    reading your blog and I look forward to your new updates.

  23. I’m gone to convey my little brother, that he
    should also pay a quick visit this web site on regular basis to take
    updated from most recent news update.

  24. Greate post. Keep posting such kind of info on your page.
    Im really impressed by your site.
    Hey there, You have performed a great job.
    I’ll definitely digg it and personally recommend
    to my friends. I am sure they’ll be benefited from this website.

  25. Normally I do not read article on blogs, however I would like to say that this
    write-up very compelled me to try and do so! Your writing style has been surprised me.
    Thank you, quite great post.

  26. Its such as you learn my thoughts! You appear to understand so much approximately this,
    like you wrote the guide in it or something.

    I feel that you just could do with a few p.c.
    to power the message house a little bit, but other than that, this is
    great blog. A fantastic read. I’ll definitely be back.

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>