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

  1. 25 free spins on sign level up casino no deposit bonus codes
    2021 (Kandi) australia, bonauka gambling machine and free bingo games united states,
    or free united statesn roulette simulator

  2. Hi, I think your blog might be having browser compatibility issues. When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, excellent blog!

  3. Admiring the dedication you put into your site and in depth
    information you offer. It’s nice to come across a blog every once
    in a while that isn’t the same outdated rehashed material.
    Wonderful read! I’ve saved your site and I’m adding your RSS feeds to
    my Google account.

  4. This is the right site for anybody who wishes to find out about this topic.

    You know a whole lot its almost hard to argue with you (not
    that I actually would want to…HaHa). You
    definitely put a new spin on a subject that has been discussed
    for decades. Wonderful stuff, just excellent!

  5. Hi, i think that i saw you visited my site so i
    came to “return the favor”.I’m attempting
    to find things to improve my site!I suppose its ok to use some of your ideas!!

  6. I know this if off topic but I’m looking into starting my own blog and was wondering
    what all is needed to get set up? I’m assuming having a blog
    like yours would cost a pretty penny? I’m not very web smart
    so I’m not 100% certain. Any tips or advice would
    be greatly appreciated. Appreciate it

  7. What i don’t realize is in truth how you are not actually much more smartly-appreciated than you may be right now.
    You are very intelligent. You already know thus
    significantly with regards to this matter, produced me in my
    view consider it from numerous numerous angles. Its like men and women are not interested except it is
    something to accomplish with Girl gaga! Your individual stuffs excellent.
    Always care for it up!

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>