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

7 thoughts on “RoundCube 0.7.1 login failed

  1. You just saved my day! I upgraded my server a couple of weeks ago and suddenly Rouncube stopped working. Setting ‘imap_auth_type’ to ‘plain’ did the trick!

  2. Simply want to say your article is as surprising.
    The clearness on your publish is just spectacular and i
    could think you are an expert on this subject.

    Well with your permission allow me to seize your feed to stay
    updated with forthcoming post. Thank you one million and please carry on the enjoyable work.

  3. I blog frequently and I really appreciate your information.
    Your article has really peaked my interest. I will book mark your
    blog and keep checking for new information about once
    a week. I subscribed to your RSS feed too.

  4. Amigos alguien me puede ayudar con este error

    [23-Sep-2014 05:14:56 +0000]: IMAP Error: Login failed for wchica from 192.168.1.3. AUTHENTICATE PLAIN: * BYE Internal error occurred. Refer to server log for more information. in /var/www/html/roundcube/program/lib/Roundcube/rcube_imap.php on line 184 (POST /webmail/?_task=login?_task=login&_action=login)

  5. buy cialis online The Expert Panel acknowledged that hormone receptor testing in breast cancer currently serves other purposes beyond identification of which patients may benefit from endocrine specific strategies for breast cancer treatment

  6. priligy and viagra Unfortunately all of these theorized or observed effects are dose dependent and likely require doses that exceed currently recommended maximums

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>