6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1149] SSL/TLS
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. ..___. . . | |\/|[__ |_/ | | | || | \\__|
Comment
> Added opton for SSL/TLS connection. > > > > In config/sources.php, for all ldap sources that need/want an ssl > connection, add the following option in 'params': > > > > 'usetls' => true > > > > The following patch enables use of ssl/tls: > > > > --- /tmp/ldap.php.org 2005-01-13 08:37:13.000000000 -0600 > > +++ ldap.php 2005-01-13 09:44:17.942846190 -0600 > > @@ -68,6 +68,14 @@ > > @ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, > $this->_params['version']); > > } > > > > + // Connect with SSL/TLS if enabled > > + if (isset($this->_params['usetls']) && > > + $this->_params['usetls'] === true) { > > + if (!@ldap_start_tls($this->_ds)) { > > + return PEAR::raiseError(sprintf(_("Ldap_start_tls failed: (%s) > %s"), ldap_errno($this->_ds), ldap_error($this->_ds))); > > + } > > + } > > + > > if (isset($this->_params['bind_dn']) && > > isset($this->_params['bind_password'])) { > > if (!@ldap_bind($this->_ds, $this->_params['bind_dn'], > $this->_params['bind_password'])) { > > > > > > This will use tls if it is set, or ignore it if not. > > > >
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