<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>wrong setting of &quot;secure&quot; session attribute breaks TLS IMAP server</title> 
  <pubDate>Fri, 10 Apr 2026 18:48:33 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11034</link> 
  <atom:link rel="self" type="application/rss+xml" title="wrong setting of &quot;secure&quot; session attribute breaks TLS IMAP server" href="https://bugs.horde.org/ticket/11034/rss" /> 
  <description>wrong setting of &quot;secure&quot; session attribute breaks TLS IMAP server</description> 
 
   
   
  <item> 
   <title>Latest Horde4 code from PEAR.

In /usr/share/php5/PEAR/Hor</title> 
   <description>Latest Horde4 code from PEAR.

In /usr/share/php5/PEAR/Horde/Kolab/Session/Imap.php line 120, the &quot;secure&quot; attribute is set to &quot;true:

        $imap = $this-&gt;_imap-&gt;create(
            array(
                &#039;hostspec&#039; =&gt; $details[&#039;imap&#039;][&#039;server&#039;],
                &#039;username&#039; =&gt; $user_id,
                &#039;password&#039; =&gt; $password,
                &#039;port&#039;     =&gt; $port,
                &#039;secure&#039;   =&gt; true
            )
        );

This breaks access to a TLS-only (non-SSL) Kolab IMAP server:

/usr/share/php5/PEAR/Horde/Imap/Client/Socket.php line 451:
        switch ($this-&gt;_params[&#039;secure&#039;]) {
        case &#039;ssl&#039;:
            $conn = &#039;ssl://&#039;;
            $this-&gt;_isSecure = true;
            break;

        case &#039;tls&#039;:
        default:
            $conn = &#039;tcp://&#039;;
            break;
        }
For some reason unknown to me (I&#039;m no PHP programmer), secure==true doesn&#039;t invoke the &quot;default&quot; case - I have to either set &quot;$conn = &#039;tcp://&#039; explicitly (instead of the switch block) here or change to &quot;secure =&gt; &#039;tls&#039;&quot; above to get a connection to our TLS Kolab server.</description> 
   <pubDate>Mon, 27 Feb 2012 13:35:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11034#t70504</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit a6faf8d5d2b1</title> 
   <description>Changes have been made in Git (master):

commit a6faf8d5d2b173d50649774f539a559ef06e7fc7
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Feb 29 15:12:36 2012 +0100

    true is not a valid paramter value for &#039;secure&#039; (Bug #11034).

 .../Kolab_Session/lib/Horde/Kolab/Session/Imap.php |    2 +-
 framework/Kolab_Session/package.xml                |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/a6faf8d5d2b173d50649774f539a559ef06e7fc7</description> 
   <pubDate>Wed, 29 Feb 2012 14:17:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11034#t70529</link> 
  </item> 
   
  <item> 
   <title>Sorry, I missed /usr/share/php5/PEAR/Horde/Core/Factory/Kola</title> 
   <description>Sorry, I missed /usr/share/php5/PEAR/Horde/Core/Factory/KolabStorage.php:

93c93
&lt;                 &#039;secure&#039;   =&gt; true
---
&gt;                 &#039;secure&#039;   =&gt; &#039;tls&#039;

Regards
Jens</description> 
   <pubDate>Wed, 29 Feb 2012 17:35:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11034#t70535</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit d4ebc79d9993</title> 
   <description>Changes have been made in Git (master):

commit d4ebc79d9993243ca429b4a9fa0ad2aaf6ae056c
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Feb 29 18:51:00 2012 +0100

    Fix &#039;secure&#039; parameter (Bug #11034).

 .../Core/lib/Horde/Core/Factory/KolabStorage.php   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/d4ebc79d9993243ca429b4a9fa0ad2aaf6ae056c</description> 
   <pubDate>Wed, 29 Feb 2012 17:51:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11034#t70540</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit a6faf8d5d2b</title> 
   <description>Changes have been made in Git (develop):

commit a6faf8d5d2b173d50649774f539a559ef06e7fc7
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Feb 29 15:12:36 2012 +0100

    true is not a valid paramter value for &#039;secure&#039; (Bug #11034).

 .../Kolab_Session/lib/Horde/Kolab/Session/Imap.php |    2 +-
 framework/Kolab_Session/package.xml                |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/a6faf8d5d2b173d50649774f539a559ef06e7fc7</description> 
   <pubDate>Thu, 01 Mar 2012 08:33:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11034#t70557</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit d4ebc79d999</title> 
   <description>Changes have been made in Git (develop):

commit d4ebc79d9993243ca429b4a9fa0ad2aaf6ae056c
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Feb 29 18:51:00 2012 +0100

    Fix &#039;secure&#039; parameter (Bug #11034).

 .../Core/lib/Horde/Core/Factory/KolabStorage.php   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/d4ebc79d9993243ca429b4a9fa0ad2aaf6ae056c</description> 
   <pubDate>Thu, 01 Mar 2012 08:35:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11034#t70560</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
