Hi all,

maybe I can shed some light on the issue.

Some hours ago I tried to setup squirrel-avelsieve against dovecot
with STARTTLS and 'plaintext auth' turned off on both sides.
Following the logfiles (see below /var/log/apache/error.log)
I decided playing around with the auth-mechanisms and the php code in
/usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php (diff
see below).

Result: The edited code works for 'PLAIN' only auth, so proposing a
case problem ('plain' vs. 'PLAIN') -- but I did not figure out where
exactly to correct it yet (I might have more time next weekend)..

Note: This is just a very dirty and dangerous workaround to explain the
problem and not a fix!

Hope it helps..
mic

------
dovecot version 1.2.15
avelsieve Version: 1.9.9-2
----
--$ tail /var/log/apache/error.log
..
[Thu Jul 14 00:03:01 2011] [error] [client 87.160.213.70] PHP Notice: 
Undefined index: PLAIN in
/usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php on
line 538, referer: https://www.inofix.net/mail/src/webmail.php
----

--$ diff -Naur
/usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php
new.managesieve.lib.php
--- /usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php 
    2011-07-14 17:40:13.000000000 +0200
+++ managesieve.lib.php 2011-07-14 17:40:02.000000000 +0200
@@ -535,8 +535,10 @@

     /* Loop through each allowed authentication type and see if the
server allows the type */
     foreach(explode(" ", $this->auth_types) as $auth_type) {
+        $auth_type = "plain";
         if ($this->capabilities["auth"][$auth_type]) {
             /* We found an auth type that is allowed. */
+            $auth_type = "PLAIN";
             $this->auth_in_use = $auth_type;
         }
     }
----





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to