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

380 thoughts on “RoundCube 0.7.1 login failed

  1. I have been surfing on-line more than 3 hours these days, but I never discovered any attention-grabbing
    article like yours. It is beautiful value sufficient for me.

    In my opinion, if all website owners and bloggers made good content material
    as you probably did, the internet can be much more helpful than ever before.

  2. Heya i’m for the first time here. I came across this board and I find It truly useful & it
    helped me out much. I hope to give something back and help others like you helped me.

  3. Hi there, i read your blog occasionally and
    i own a similar one and i was just curious if
    you get a lot of spam comments? If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me insane so any assistance is
    very much appreciated.

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

  5. Great beat ! I wish to apprentice while you amend your website, how can i subscribe for
    a blog site? The account aided me a acceptable deal. I had
    been tiny bit acquainted of this your broadcast provided bright clear idea

  6. An impressive share! I have just forwarded this onto a colleague who had been conducting a
    little research on this. And he actually bought me lunch because I found it for him…
    lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending the time to talk about this
    topic here on your blog.

  7. I every time used to read paragraph in news papers but now as
    I am a user of web therefore from now I am using
    net for posts, thanks to web.

  8. Após a confirmação do pagamento em nosso sistema, faremos o pedido do seu produto.
    Prazo mínimo 10 dias e prazo máximo 70 dias, com média de entrega de 25/30 dias.

  9. If some one desires expert view on the topic of blogging
    and site-building afterward i suggest him/her to pay a visit
    this weblog, Keep up the pleasant work.

  10. What’s up, yes this article is actually pleasant and I have learned lot of things from
    it on the topic of blogging. thanks.

  11. I’ve learn several just right stuff here. Certainly price
    bookmarking for revisiting. I wonder how a lot effort you set
    to create such a fantastic informative web site.

  12. Hi, Neat post. There is an issue with your site in web explorer, might check this?
    IE nonetheless is the marketplace leader and a large portion of
    other folks will leave out your excellent writing due to
    this problem.

  13. I don’t even know the way I ended up right here, however I thought this publish was once
    good. I don’t recognize who you might be but certainly you’re going to a
    well-known blogger in case you are not already. Cheers!

  14. Having read this I believed it was really informative.
    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 posting comments. But so what, it was still worth it!

  15. I do not know whether it’s just me or if perhaps everyone else encountering problems with your website.
    It appears like some of the written text on your posts are running off the screen. Can someone else please
    provide feedback and let me know if this is happening to them as well?
    This might be a problem with my browser because I’ve had this happen previously.
    Kudos

  16. Hi my family member! I wish to say that this article is awesome, great written and include almost all
    vital infos. I would like to peer more posts like this .

  17. I’m no longer positive where you are getting your info, but great
    topic. I needs to spend a while studying more or
    working out more. Thanks for excellent information I used to be looking for this info for my mission.

  18. Hi there! I simply would like to offer you a huge thumbs up for your great information you’ve got right here on this post.
    I will be coming back to your site for more soon.

  19. Having read this I believed it was very enlightening. I appreciate you
    spending some time and effort to put this informative article together.

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

  20. I seriously love your website.. Very nice colors &
    theme. Did you build this web site yourself? Please reply back as I’m
    hoping to create my very own site and would like
    to learn where you got this from or exactly what the theme is named.
    Kudos!

  21. all the time i used to read smaller articles which as well clear their motive, and that is also happening with this piece of writing which I am reading at this time.

  22. Hey, I think your website might be having browser compatibility issues.

    When I look at your blog site in Chrome, 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, amazing blog!

  23. Amazing! This blog looks just like my old one! It’s on a
    completely different topic but it has pretty much the same page layout and design. Wonderful choice of colors!

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>