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

6,295 thoughts on “RoundCube 0.7.1 login failed

  1. Excellent blog here! Also your site loads up fast! What
    host are you using? Can I get your affiliate link to your host?
    I wish my website loaded up as quickly as yours lol

  2. Hey! Someone in my Facebook group shared this site with us so I came to check it out.
    I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers!
    Wonderful blog and terrific design.

  3. Hello, Neat post. There is an issue along with your
    web site in internet explorer, would check this?
    IE still is the marketplace leader and a big component to
    other people will pass over your fantastic writing due to this problem.

  4. Your method of describing everything in this article is really fastidious, all be capable of effortlessly know it,
    Thanks a lot.

  5. You actually make it appear really easy along with
    your presentation but I in finding this matter to be really something which I believe I’d by no means understand.
    It sort of feels too complicated and very broad for me.
    I am having a look forward to your subsequent put up, I will try to get the cling of it!

  6. First off I want to say terrific blog! I had a quick question in which
    I’d like to ask if you don’t mind. I was curious to find out how you center yourself and clear your thoughts before writing.
    I’ve had a difficult time clearing my thoughts in getting
    my thoughts out there. I truly do take pleasure
    in writing but it just seems like the first 10 to 15
    minutes are usually wasted just trying to figure out how to begin. Any recommendations or hints?
    Kudos!

  7. I used to be suggested this website by means
    of my cousin. I’m no longer certain whether or not this put up is written through him as nobody else know such special approximately
    my difficulty. You’re incredible! Thanks!

  8. Every weekend i used to go to see this site, for the
    reason that i wish for enjoyment, as this this web page conations actually
    fastidious funny data too.

  9. We’re a bunch of volunteers and starting a new scheme in our community.

    Your website provided us with valuable info to work on. You’ve done a formidable activity and our entire neighborhood can be grateful to you.

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>