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

  1. My programmer is trying to persuade me to move to
    .net from PHP. I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using WordPress on a number of websites for about a year
    and am worried about switching to another platform.
    I have heard great things about blogengine.net. Is there a way I can import all my wordpress posts into it?
    Any help would be greatly appreciated!

  2. Hi Dear, are you genuinely visiting this web page daily, if so then you will definitely get fastidious know-how.

  3. Its like you read my mind! You seem to know a lot about this, like
    you wrote the book in it or something. I think that
    you could do with a few pics to drive the message home a bit, but instead
    of that, this is excellent blog. A great read.
    I’ll certainly be back.

  4. constantly i used to read smaller posts which as well clear their
    motive, and that is also happening with this post
    which I am reading here.

  5. Hi there excellent blog! Does running a blog such as this take a large amount of work?
    I have no expertise in computer programming however I had been hoping
    to start my own blog in the near future. Anyway, if you have any ideas or techniques for
    new blog owners please share. I understand this is off topic nevertheless I simply needed to
    ask. Many thanks!

  6. It’s appropriate time to make some plans for the future and it’s time to be happy.

    I’ve read this post and if I could I want to suggest you some interesting things
    or tips. Perhaps you could write next articles referring to this article.
    I want to read more things about it!

  7. Please let me know if you’re looking for a writer for your weblog.

    You have some really great posts and I feel I would be a good asset.
    If you ever want to take some of the load off,
    I’d absolutely love to write some material for your blog in exchange for a link back to mine.
    Please shoot me an e-mail if interested. Many thanks!

  8. Just wish to say your article is as astonishing.
    The clarity in your publish is just excellent and that i could think you are knowledgeable on this subject.

    Fine along with your permission let me to grasp your feed to
    stay updated with approaching post. Thank you
    one million and please keep up the rewarding work.

  9. I’m truly enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much
    more enjoyable for me to come here and visit more often. Did you hire out
    a designer to create your theme? Fantastic work!

  10. Howdy very nice website!! Guy .. Beautiful .. Wonderful .. I’ll bookmark your
    website and take the feeds additionally?
    I’m happy to find numerous helpful info here in the post, we need
    work out more techniques on this regard, thanks for sharing.
    . . . . .

  11. It’s remarkable to pay a visit this web page and reading the views of all friends on the topic of this post, while I am
    also keen of getting familiarity.

  12. I do not even know the way I ended up right here, but I
    believed this post was once good. I don’t understand
    who you are however certainly you are going to a famous blogger if you
    aren’t already. Cheers!

  13. Hmm it appears like your website ate my first comment (it was
    super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.

    I too am an aspiring blog blogger but I’m still new to the whole thing.

    Do you have any recommendations for first-time
    blog writers? I’d really appreciate it.

  14. You must absolutely not take this with nitrate-based medications (such as nitroglycerin).
    It can cause severe hypotension. Since there is a possibility of interactions with other
    blood pressure medications, such as alpha-blockers,
    you must consult your prescribing doctor to adjust the dosage
    and dosing interval.

  15. Pretty section of content. I just stumbled upon your site and in accession capital
    to assert that I acquire actually enjoyed account
    your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

  16. I don’t know if it’s just me or if everyone else encountering problems with your website.
    It seems like some of the written text within your content are running off the screen. Can someone else
    please comment and let me know if this is happening to them too?
    This might be a issue with my browser because I’ve had this happen before.
    Many thanks

  17. I am genuinely delighted to read this webpage posts which carries plenty of
    valuable facts, thanks for providing these statistics.

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>