[Kolab-devel] [issue4669] Horde and TLS connection

Gohmann issues at kolab.org
Tue Nov 23 13:34:53 CET 2010


I've had some problems to activate in Horde a TLS IMAP connection. With the
attached patch it works for me for the cclient IMAP driver. For the pear IMAP
driver I have updated Net_IMAP to 1.1.0 and added the following patch:
http://pear.php.net/bugs/bug.php?id=16891&edit=12&patch=correct_operator_precedence&revision=1270153831

Cheers
Stefan

----------
files: univention_imap_tls.diff
keyword: web client
messages: 27247
nosy: stefan, wrobel
status: unread
title: Horde and TLS connection

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4669>
______________________________________
-------------- next part --------------
--- a/horde-webmail/lib/Horde/Kolab/Session.php	2009-12-15 19:17:05.000000000 +0100
+++ b/horde-webmail/lib/Horde/Kolab/Session.php	2010-11-22 13:27:43.000000000 +0100
@@ -231,7 +231,13 @@
             }
         }
 
-        $this->_imap_params['protocol'] = 'imap/notls/novalidate-cert';
+        if (!isset($this->_imap_params['protocol'])) {
+            if (isset($conf['kolab']['imap']['protocol'])) {
+                $this->_imap_params['protocol'] = $conf['kolab']['imap']['protocol'];
+            } else {
+                $this->_imap_params['protocol'] = 'imap/notls/novalidate-cert';
+            }
+        }
     }
 
     /**
--- a/horde-webmail/lib/Horde/Kolab/IMAP/cclient.php	2009-12-15 19:17:05.000000000 +0100
+++ b/horde-webmail/lib/Horde/Kolab/IMAP/cclient.php	2010-11-23 10:39:42.000000000 +0100
@@ -67,11 +67,13 @@
      * @return boolean|PEAR_Error  True in case the connection was opened
      *                             successfully.
      */
-    function connect($login, $password, $tls = false)
+    function connect($login, $password, $tls = true)
     {
         $options = '';
         if (!$tls) {
             $options = '/notls';
+        } else {
+            $options = '/tls/novalidate-cert';
         }
 
         $mbox = '{' . $this->_server . ':' . $this->_port


More information about the devel mailing list