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

  1. What i don’t understood is if truth be told how you are no longer really a lot
    more neatly-preferred than you might be now.
    You are very intelligent. You realize therefore considerably with regards to this topic, produced me in my opinion consider it
    from so many varied angles. Its like men and women are not fascinated except it’s something to
    do with Woman gaga! Your own stuffs great. At all times take care of
    it up!

  2. Good way of telling, and nice article to get information about my presentation subject, which i
    am going to present in university.

  3. First of all I would like to say great blog! I had a
    quick question which I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear your mind before writing.

    I’ve had trouble clearing my mind in getting my thoughts out.
    I truly do enjoy writing but it just seems like the first 10 to 15 minutes are generally wasted just trying to figure
    out how to begin. Any suggestions or hints?
    Appreciate it!

  4. Appreciating the dedication you put into your blog and detailed information you offer.
    It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material.
    Great read! I’ve saved your site and I’m including
    your RSS feeds to my Google account.

  5. I don’t even know how I ended up here, but I thought this post was good.
    I do not know who you are but certainly you’re going to a famous blogger if you aren’t already ;) Cheers!

  6. Wow, amazing blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of your website is great,
    let alone the content!

  7. Excellent post. Keep posting such kind of info on your blog.
    Im really impressed by your site.
    Hey there, You’ve done a great job. I’ll definitely digg it and in my opinion suggest to my
    friends. I am sure they will be benefited from this site.

  8. Thanks for sharing your thoughts. I truly appreciate
    your efforts and I will be waiting for your further write ups thanks once again.

  9. Today, I went to the beachfront with my kids. I found a sea shell and gave it to
    my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She
    put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is completely
    off topic but I had to tell someone!

  10. Hi there, You’ve done a fantastic job. I’ll certainly digg it and
    personally suggest to my friends. I am sure they will be benefited from this web site.

  11. Howdy! This article couldn’t be written much better!
    Looking at this post reminds me of my previous
    roommate! He continually kept talking about this. I will
    forward this post to him. Fairly certain he’s going to have a
    great read. Many thanks for sharing!

  12. Undeniably believe that which you stated. Your favorite reason appeared to be on the web the easiest thing
    to be aware of. I say to you, I certainly get annoyed while people consider worries that they plainly do not know about.
    You managed to hit the nail upon the top and also defined out the whole thing
    without having side-effects , people can take a signal.

    Will likely be back to get more. Thanks

  13. Whats up very nice site!! Man .. Beautiful ..
    Superb .. I’ll bookmark your blog and take the feeds additionally?
    I am satisfied to find so many useful information right here
    in the publish, we want develop extra techniques in this regard, thank you for
    sharing. . . . . .

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>