[Tickets #11034] wrong setting of "secure" session attribute breaks TLS IMAP server

bugs at horde.org bugs at horde.org
Mon Feb 27 13:35:17 UTC 2012


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/11034
------------------------------------------------------------------------------
  Ticket           | 11034
  Erstellt Von     | jmozdzen at nde.ag
  Zusammenfassung  | wrong setting of "secure" session attribute breaks TLS
                   | IMAP server
  Warteschlange    | Kolab
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 2. Medium
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


jmozdzen at nde.ag (2012-02-27 13:35) hat geschrieben:

Latest Horde4 code from PEAR.

In /usr/share/php5/PEAR/Horde/Kolab/Session/Imap.php line 120, the  
"secure" attribute is set to "true:

         $imap = $this->_imap->create(
             array(
                 'hostspec' => $details['imap']['server'],
                 'username' => $user_id,
                 'password' => $password,
                 'port'     => $port,
                 'secure'   => 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->_params['secure']) {
         case 'ssl':
             $conn = 'ssl://';
             $this->_isSecure = true;
             break;

         case 'tls':
         default:
             $conn = 'tcp://';
             break;
         }
For some reason unknown to me (I'm no PHP programmer), secure==true  
doesn't invoke the "default" case - I have to either set "$conn =  
'tcp://' explicitly (instead of the switch block) here or change to  
"secure => 'tls'" above to get a connection to our TLS Kolab server.





More information about the bugs mailing list