Roundcube Community Forum

 

Auth_SASL package is required for DIGEST-MD5

Started by aberrio, April 28, 2011, 09:44:03 AM

Previous topic - Next topic

aberrio

Hi,

I tried to upgrade but I am not able to logging after the changes. I am getting the following error.

Previous version is in production without problems.  On the new version ask me to change one variable and pass all other test.

Connecting to localhost...
IMAP connect:  NOT OK(Login failed for [email protected] from xxx.xx.xx.1.
The Auth_SASL package is required for DIGEST-MD5 authentication)

The log error shows.
Apr 28 08:20:00 mail dovecot: imap-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured

Any suggestion?

aberrio

#1
Hi,

is this varible broken again?

$rcmail_config['imap_auth_type']

I try default no good. "plain" no good.

I try to log in port 143 IMAP  is looking for SSL/TLS conex.  I had changed and restarted apache no good.

anybody on this error?

RitBit

Same thing with me...
0.5.1 works fine
0.5.2 fails.. tried even copying config files from 0.5.1 -> no joy...

Seems like 0.5.2 is broken somehow?

aberrio

Hello,

I solved mine using the configuration file from 0.5.2.   Do not use previous .conf file.  In the IMAP viable use PLAIN.


Regards,

Al

fixastl

Hi!
One more with the same problem - after upgrade to 0.5.3; PLAIN and old .conf are not working; is there no other solution?
thx and bye,
f

sihirhosting

I applied a patch about the SASL problem and error has gone. I've quoted the patch.
But the problem goes on while trying to authentice IMAP. i've set imap_auth variable to PLAIN but it still tries authenticate via DIGEST-MD5.
Anybody can help?

Quote--- utils.php   2011-06-14 10:42:39.000000000 -0400
+++ utils.php.patch   2011-06-14 10:42:06.000000000 -0400
@@ -34,8 +34,8 @@
 function __autoload($classname)
 {
   $filename = preg_replace(
-      array('/MDB2_(.+)/', '/Mail_(.+)/', '/Net_(.+)/', '/^html_.+/', '/^utf8$/'),
-      array('MDB2/\\1', 'Mail/\\1', 'Net/\\1', 'html', 'utf8.class'),
+      array('/MDB2_(.+)/', '/Mail_(.+)/', '/Net_(.+)/', '/Auth_(.+)/', '/^html_.+/', '/^utf8$/'),
+      array('MDB2/\\1', 'Mail/\\1', 'Net/\\1', 'Auth/\\1', 'html', 'utf8.class'),
       $classname
   );
   include_once $filename. '.php';


jeff_r

#6
That patch doesn't fix the problem you are talking about.  There isn't a great fix. The value set in the .conf file for authentication type is apparently ignored by the installer program.  (NB: the actual program honors it, only the installer ignores it.)

You can hard-code your selection into the program by editing program/include/rcube_imap_generic.php.  You can add a line to the authenticate function (line 465):

 
 function authenticate($user, $pass, $type='PLAIN')
    {
        $type = 'PLAIN';
        if ($type == 'CRAM-MD5' || $type == 'DIGEST-MD5') {


It's an ugly fix but it will let you run the installer's tests.  I'd remove it after you finish testing, because the actual user login will use the value in the conf file.