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

  1. It is the best time to make some plans for the future and it is time to be
    happy. I’ve read this post and if I could I desire to suggest you few
    interesting things or advice. Maybe you can write
    next articles referring to this article. I want to read
    even more things about it!

  2. Superb blog you have here but I was wondering if you knew of any message boards
    that cover the same topics discussed here? I’d really love to be a part of community where I can get feed-back from other experienced people that share the same interest.
    If you have any recommendations, please let me know.
    Thanks!

  3. I was suggested this blog by my cousin. I’m not sure whether this post is written by him
    as nobody else know such detailed about my trouble. You’re amazing!

    Thanks!

  4. I have been exploring for a little for any high quality articles or weblog posts in this kind of
    area . Exploring in Yahoo I eventually stumbled upon this web
    site. Studying this information So i’m glad to exhibit
    that I have a very excellent uncanny feeling I discovered just what
    I needed. I most without a doubt will make sure to do not put out of your
    mind this site and give it a look on a relentless basis.

  5. I visited various blogs but the audio feature for audio songs existing at this web site is genuinely fabulous.

  6. What’s up, I log on to your blog like every week.
    Your humoristic style is awesome, keep doing what you’re doing!

  7. Hi, I do think this is an excellent website. I stumbledupon it ;) I will come back yet again since I bookmarked it.
    Money and freedom is the greatest way to change, may you be rich and continue to help others.

  8. Amazing blog! Is your theme custom made or did you download it from somewhere?

    A design like yours with a few simple tweeks would really make
    my blog shine. Please let me know where you got your design.
    Thank you

  9. It’s awesome designed for me to have a site,
    which is helpful in favor of my know-how. thanks admin

  10. I like the helpful information you provide in your articles.
    I’ll bookmark your weblog and check again here frequently.
    I am quite certain I will learn many new stuff right here!
    Best of luck for the next!

  11. Hi, i read your blog occasionally and i own a similar
    one and i was just wondering 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 crazy so any support is very much appreciated.

  12. If you are going for finest contents like myself, just pay a visit this web page everyday as
    it gives feature contents, thanks

  13. Greetings! Very useful advice in this particular post!

    It is the little changes that will make the most significant changes.

    Many thanks for sharing!

  14. This paragraph is really a nice one it helps new web users, who are wishing in favor of blogging.

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>