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:
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?
Check this patch Changeset 4728 ? Roundcube Webmail (http://trac.roundcube.net/changeset/4728)
Quote from: alec;34691Check this patch Changeset 4728 ? Roundcube Webmail (http://trac.roundcube.net/changeset/4728)
That patch's code is already in the version of rcube_imap_generic.php in my installation.
Perhaps I should try removing it.
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
Quote from: aberrio;34706Hi,
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?
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
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.