6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/19/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11034] wrong setting of "secure" session attribute breaks TLS IMAP server
*
Your Email Address
*
Spam protection
Enter the letters below:
.__.. .. .___.. . | ||\ || _/ | | |__\| \||___./__.|__|
Comment
> 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.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers