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

  1. Heya i’m for the first time here. I came across this board and I in finding It really useful & it helped me
    out much. I hope to provide one thing again and aid others like you aided me.

  2. Thanks a lot for sharing this with all people you
    actually know what you’re talking about! Bookmarked. Please additionally talk over with my site =).
    We can have a hyperlink trade contract between us

  3. Heya i’m for the primary time here. I found this board
    and I in finding It truly useful & it helped me
    out much. I hope to offer one thing again and help others such as you aided me.

  4. Howdy! I know this is sort of off-topic but I needed to ask.
    Does operating a well-established website
    like yours require a lot of work? I am completely
    new to blogging but I do write in my journal every day. I’d like to
    start a blog so I can easily share my personal experience and thoughts online.

    Please let me know if you have any kind of ideas or tips for brand new aspiring bloggers.

    Appreciate it!

  5. I would like to thank you for the efforts
    you’ve put in penning this blog. I’m hoping to check out the same high-grade blog posts by you later on as well.
    In truth, your creative writing abilities has inspired me to get my own blog now ;)

  6. Hi there, I discovered your blog by way of Google while
    searching for a similar subject, your website came up, it appears great.
    I have bookmarked it in my google bookmarks.

    Hi there, just became alert to your weblog via Google, and found that
    it’s really informative. I am gonna be careful for brussels.
    I will be grateful when you continue this in future.
    Lots of folks will probably be benefited from
    your writing. Cheers!

  7. Have you ever thought about publishing an e-book or
    guest authoring on other websites? I have a blog based
    upon on the same information you discuss and would love to
    have you share some stories/information. I know my viewers would enjoy your work.
    If you are even remotely interested, feel free to send me an e-mail.

  8. I blog often and I genuinely thank you for your information. This great article has truly peaked my interest.

    I am going to book mark your site and keep checking
    for new details about once a week. I subscribed to your Feed
    as well.

  9. I simply could not depart your web site before suggesting that I actually
    loved the standard info a person provide in your visitors?
    Is going to be again ceaselessly in order to investigate
    cross-check new posts

  10. Oh my goodness! Awesome article dude! Many thanks,
    However I am encountering troubles with your RSS.
    I don’t understand why I am unable to subscribe to it.

    Is there anybody else having similar RSS problems? Anybody who knows the answer will you kindly respond?
    Thanx!!

  11. An intriguing discussion is definitely worth comment.
    There’s no doubt that that you ought to write more about this issue, it might
    not be a taboo matter but generally folks don’t talk about such issues.

    To the next! All the best!!

  12. I was suggested this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem.
    You’re wonderful! Thanks!

  13. I am really impressed with your writing skills and
    also with the layout on your blog. Is this a paid theme or did you modify it yourself?
    Anyway keep up the nice quality writing, it is rare to see a great blog
    like this one today.

  14. Hi! This is my first visit to your blog! We are a team of volunteers
    and starting a new project in a community in the same niche.
    Your blog provided us useful information to work on. You have done a extraordinary job!

  15. This design is incredible! 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!) Wonderful job.
    I really loved what you had to say, and more than that, how you
    presented it. Too cool!

  16. An outstanding share! I have just forwarded this
    onto a colleague who had been doing a little homework on this.
    And he actually bought me lunch because I discovered it for him…
    lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanks for spending time to talk about this issue here on your website.

  17. Unquestionably believe that which you said. Your favorite reason seemed
    to be on the web the simplest thing to be aware of.
    I say to you, I certainly get irked while people consider worries that they plainly 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 can take a signal. Will likely be back to get
    more. Thanks

  18. Harna Wear is a premium polewear brand based in Indonesia,
    created for dancers worldwide who value precision, durability, and confidence in every movement.
    Available exclusively through HarnaWear.com, the brand delivers performance-driven apparel directly to global customers.
    Harna Wear is positioned as a consumer-focused
    pole fitness apparel store, offering refined collections designed for dancers who seek secure fit, controlled movement, and confident visual presence during both training and performance.

  19. Howdy! I could have sworn I’ve been to this site before but after checking through
    some of the post I realized it’s new to me. Nonetheless, I’m definitely happy I found it and I’ll be book-marking and checking back often!

  20. Greetings! Very helpful advice in this particular article!
    It’s the little changes that will make the most important changes.
    Thanks a lot for sharing!

  21. A motivating discussion is definitely worth comment. I think
    that you ought to publish more on this subject matter,
    it might not be a taboo subject but typically people do not discuss such topics.

    To the next! Cheers!!

  22. always i used to read smaller articles or reviews that also clear their motive,
    and that is also happening with this piece of
    writing which I am reading now.

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>