summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-28 06:23:15 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-06-28 06:23:15 (GMT)
commitfb6d7d8f284f621c1fa4273deffa0f91c4639038 (patch)
tree60dcacf44d6882873919842ce1481f31a29dc026
parentffbcdbe1e5b9894edaf06c688a7a18665e26e214 (diff)
downloadNet_LDAP3-fb6d7d8f284f621c1fa4273deffa0f91c4639038.tar.gz
Use configured TLS flag for Net_LDAP2 connection
-rw-r--r--lib/Net/LDAP3.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
index f1e0f3b..8a70145 100644
--- a/lib/Net/LDAP3.php
+++ b/lib/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')