lib/ext
Aleksander Machniak
machniak at kolabsys.com
Fri Jun 28 08:18:32 CEST 2013
lib/ext/Net/LDAP3.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit fb228487d825af1d9e9b6bdff4a47171601e8928
Author: Aleksander Machniak <alec at alec.pl>
Date: Fri Jun 28 08:16:54 2013 +0200
Use TLS flag also when connecting with Net_LDAP2 (for LDAP schema)
diff --git a/lib/ext/Net/LDAP3.php b/lib/ext/Net/LDAP3.php
index f1e0f3b..8a70145 100644
--- a/lib/ext/Net/LDAP3.php
+++ b/lib/ext/Net/LDAP3.php
@@ -1757,6 +1757,7 @@ class Net_LDAP3
}
$port = $this->config_get('port', 389);
+ $tls = $this->config_get('use_tls', false);
foreach ($this->config_get('hosts') as $host) {
$this->_debug("C: Connect [$host:$port]");
@@ -1764,7 +1765,7 @@ class Net_LDAP3
$_ldap_cfg = array(
'host' => $host,
'port' => $port,
- 'tls' => false,
+ 'tls' => $tls,
'version' => 3,
'binddn' => $this->config_get('service_bind_dn'),
'bindpw' => $this->config_get('service_bind_pw')
More information about the commits
mailing list