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’.

4,273 thoughts on “RoundCube 0.7.1 login failed

  1. Its like you learn my thoughts! You appear to know so much approximately this, like you wrote the ebook in it or something. I believe that you can do with a few p.c. to pressure the message house a bit, but other than that, that is fantastic blog. A fantastic read. I’ll certainly be back.

  2. What’s up i am kavin, its my first occasion to commenting
    anywhere, when i read this paragraph i thought i could also make comment
    due to this brilliant post.

  3. If some one needs to be updated with newest technologies then he must be pay a quick visit this web page
    and be up to date all the time.

  4. I’m not that much of a internet reader to be honest but your blogs really nice, keep it up!

    I’ll go ahead and bookmark your website to come back down the road.
    Many thanks

  5. each time i used to read smaller posts that also
    clear their motive, and that is also happening with this paragraph which I am reading at this time.

  6. This piece of writing is actually a good one it assists new net visitors, who are wishing in favor of blogging.

  7. These are genuinely impressive ideas in concerning blogging.

    You have touched some nice points here. Any way keep up wrinting.

  8. With havin so much content do you ever run into any issues of
    plagorism or copyright violation? My website has a lot of
    unique content I’ve either written myself or
    outsourced but it looks like a lot of it is popping it up all over the web without my permission. Do
    you know any techniques to help stop content from
    being ripped off? I’d really appreciate it.

  9. It’s amazing designed for me to have a web page, which
    is valuable for my knowledge. thanks admin

  10. Your style is unique compared to other folks I have read stuff from.
    Many thanks for posting when you’ve got the opportunity, Guess I will just bookmark
    this blog.

  11. I got this website from my pal who informed me on the topic of this web page and at the moment this time I am browsing this website and reading very informative articles or reviews here.

  12. I absolutely love your blog and find many of your post’s to be
    just what I’m looking for. Would you offer guest writers to write content for you?
    I wouldn’t mind writing a post or elaborating on some of the subjects you write
    about here. Again, awesome web log!

  13. I?ve read several good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to make such a wonderful informative site.

  14. Great article! That is the type of information that
    are meant to be shared across the net. Shame on the search engines for not positioning this put up higher!

    Come on over and talk over with my web site . Thanks =)

  15. If you would like to increase your experience only keep visiting this web page and be updated with the newest news update posted here.

  16. Hello, i think that i saw you visited my site thus
    i came to “return the favor”.I’m attempting to find things to
    improve my web site!I suppose its ok to use some of your ideas!!

  17. I have read so many articles or reviews concerning the blogger lovers except this article is genuinely a fastidious paragraph, keep it up.

  18. Hi there, yeah this piece of writing is actually
    fastidious and I have learned lot of things
    from it on the topic of blogging. thanks.

  19. whoah this weblog is fantastic i really like reading your posts.

    Keep up the great work! You recognize, lots of individuals
    are searching around for this info, you could help them greatly.

  20. Undeniably believe that which you said. Your favorite reason appeared to
    be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people consider worries that they just don’t know about.
    You managed to hit the nail upon the top as well as defined out the whole thing without having side effect ,
    people could take a signal. Will likely be
    back to get more. Thanks

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>