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

  1. I think this is among the most significant information for
    me. And i’m glad reading your article. But want to remark on few
    general things, The website style is ideal, the articles is really great : D.
    Good job, cheers

    Also visit my web-site … big craps win

  2. When someone writes an paragraph he/she keeps the idea of a user in his/her brain that how a user can understand it.
    Therefore that’s why this post is amazing. Thanks!

  3. My brother recommended I might like this website.
    He was totally right. This post actually made my day.
    You can not imagine simply how much time I had
    spent for this information! Thanks!

  4. Every weekend i used to pay a quick visit this
    web page, for the reason that i want enjoyment, as this this web site conations really fastidious funny stuff too.

  5. Good response in return of this matter with real arguments and
    explaining the whole thing on the topic of that.

  6. Hiya very nice website!! Man .. Beautiful .. Wonderful ..
    I will bookmark your site and take the feeds additionally?
    I’m happy to seek out numerous helpful information here in the put up, we’d like work out extra strategies
    in this regard, thank you for sharing. . . . . .

  7. Hey there! I know this is somewhat off topic but I was wondering
    which blog platform are you using for this site?
    I’m getting fed up of WordPress because I’ve had issues with hackers and I’m looking at alternatives for
    another platform. I would be awesome if you could point me in the direction of
    a good platform.

  8. Hi! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing
    a few months of hard work due to no data backup.

    Do you have any solutions to stop hackers?

  9. Its not my first time to go to see this site, i am browsing this website dailly and get pleasant data from here everyday.

  10. It’s an amazing paragraph in support of all the online viewers; they will get
    advantage from it I am sure.

  11. Howdy! I’m at work surfing around your blog from my new iphone 3gs!
    Just wanted to say I love reading through your blog and look forward to all your posts!

    Carry on the superb work!

  12. It’s an remarkable post designed for all the web
    people; they will obtain benefit from it I am sure.

  13. Article writing is also a excitement, if you
    be familiar with afterward you can write or else it is complex to write.

  14. Someone essentially help to make significantly articles I would state.
    This is the very first time I frequented your web page and so far?
    I amazed with the research you made to make
    this particular put up amazing. Great job!

  15. I have been exploring for a little for any high quality articles or weblog
    posts in this kind of area . Exploring in Yahoo I finally stumbled
    upon this web site. Studying this information So
    i am happy to show that I have a very just right uncanny feeling I discovered just what I
    needed. I so much without a doubt will make sure to don?t fail
    to remember this web site and provides it a glance regularly.

  16. If some one desires expert view concerning blogging and site-building after that i recommend him/her to go to see this web site, Keep up the fastidious work.

  17. If some one wants to be updated with most up-to-date technologies then he must be
    pay a quick visit this site and be up to date everyday.

  18. I have been browsing online more than three hours today, yet I never found
    any interesting article like yours. It’s pretty worth enough for me.

    In my opinion, if all webmasters and bloggers
    made good content as you did, the web will be a
    lot more useful than ever before.

  19. It’s hard to come by well-informed people on this subject, however, you seem like you know what you’re talking about!
    Thanks

  20. This blog was… how do you say it? Relevant!! Finally I have found something that helped me.
    Thank you!

  21. Hey I am so thrilled I found your blog, I really found you
    by accident, while I was browsing on Aol for something else, Nonetheless I
    am here now and would just like to say many thanks for a tremendous post
    and a all round entertaining blog (I also love the theme/design), I don’t have time to read it all at the moment but I have bookmarked it and also included your RSS feeds, so when I
    have time I will be back to read a great deal more, Please
    do keep up the superb work.

  22. Hello i am kavin, its my first time to commenting anyplace, when i read this article i thought
    i could also create comment due to this good piece of writing.

  23. great put up, very informative. I’m wondering why the other specialists of
    this sector do not realize this. You must continue your writing.
    I am confident, you have a great readers’ base already!

  24. Hello there! I know this is somewhat off topic but I was wondering which
    blog platform are you using for this website? I’m getting tired
    of WordPress because I’ve had problems with hackers and I’m
    looking at options for another platform.

    I would be great if you could point me in the direction of a good
    platform.

  25. Hey There. I found your blog using msn. This is an extremely well written article.
    I will make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll definitely return.

  26. My spouse and I stumbled over here from a different website and thought I might
    as well check things out. I like what I see so now
    i am following you. Look forward to looking into
    your web page repeatedly.

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>