Author Topic: 0.5.2 - imap_auth_type PLAIN ignored  (Read 4140 times)

Offline dwasifar

  • Newbie
  • *
  • Posts: 7
0.5.2 - imap_auth_type PLAIN ignored
« on: May 05, 2011, 10:05:56 PM »
I set imap_auth_type to PLAIN in main.inc.php, but RC still tries to use CRAM-MD5.  I've tried every variant of PLAIN I could think of:  plain, PLAIN, 'PLAIN', 'plain', "PLAIN", "plain".  Nothing works.

In 0.3.x this problem required a change in imap.inc.  That file's gone now, and all the bug reports surrounding it have been marked Fixed, so I guess this is a new bug, or a regression.

I finally kludged around it in frustration  by adding this at line 465 of rcube_imap_generic.php:

Code: [Select]
   
function authenticate($user, $pass, $type='PLAIN')
    {
[B]    $type = 'PLAIN';[/B]
        if ($type == 'CRAM-MD5' || $type == 'DIGEST-MD5') {

This forces the authentication type to PLAIN and bypasses the other types.  But it's a nasty kludge.  Anyone have a better way?

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
0.5.2 - imap_auth_type PLAIN ignored
« Reply #1 on: May 06, 2011, 02:28:34 AM »

Offline dwasifar

  • Newbie
  • *
  • Posts: 7
0.5.2 - imap_auth_type PLAIN ignored
« Reply #2 on: May 06, 2011, 10:39:44 AM »
Quote from: alec;34691
Check this patch Changeset 4728 ? Roundcube Webmail


That patch's code is already in the version of rcube_imap_generic.php in my installation.

Perhaps I should try removing it.

Offline aberrio

  • Jr. Member
  • **
  • Posts: 24
0.5.2 - imap_auth_type PLAIN ignored
« Reply #3 on: May 06, 2011, 06:57:18 PM »
Hi,

I had the same issue for a while; I fixed using a new .conf file from the 0.5.2. Do not use the old .conf file.

Kind regards,

Al

Offline dwasifar

  • Newbie
  • *
  • Posts: 7
0.5.2 - imap_auth_type PLAIN ignored
« Reply #4 on: May 06, 2011, 07:21:40 PM »
Quote from: aberrio;34706
Hi,

I had the same issue for a while; I fixed using a new .conf file from the 0.5.2. Do not use the old .conf file.

Kind regards,

Al


This is a new installation with newly built config files.

Do you know what particular setting in your conf file was responsible?

Offline aberrio

  • Jr. Member
  • **
  • Posts: 24
0.5.2 - imap_auth_type PLAIN ignored
« Reply #5 on: May 07, 2011, 12:24:37 PM »
Hi,

I disregarded my old .conf file and reconfiue RC with the new on RC 0.5.2.

Here is my IMAP section of the main.inc.conf


// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['imap_auth_type'] = PLAIN;

There are new parameter in the new .conf file. Also, was a change in the  rcube_imap_generic.php code.


Kind regards,

Al

Offline dwasifar

  • Newbie
  • *
  • Posts: 7
0.5.2 - imap_auth_type PLAIN ignored
« Reply #6 on: May 07, 2011, 02:53:31 PM »
I didn't use my old conf files either.  I started from scratch and ran the installer, and let it generate conf files for me.  Then I edited the imap_auth_type.

For the meantime I have switched back to 0.3.1, which is the latest version available in my distro's repositories, primarily for speed reasons.  0.5.2 seems a lot slower.