From 5f1d8483b5a48fb454654206ed2cac14829f5872 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 16 Mar 2003 10:58:54 +0000 Subject: [PATCH] always use LDAP v3 protocol --- lam/lib/ldap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lam/lib/ldap.php b/lam/lib/ldap.php index 6612b09c..29978386 100644 --- a/lam/lib/ldap.php +++ b/lam/lib/ldap.php @@ -98,6 +98,8 @@ class Ldap{ if ($this->conf->get_SSL() == "True") $this->server = @ldap_connect("ldaps://" . $this->conf->get_Host(), $this->conf->get_Port()); else $this->server = @ldap_connect("ldap://" . $this->conf->get_Host(), $this->conf->get_Port()); if ($this->server) { + // use LDAPv3 + ldap_set_option($this->server, LDAP_OPT_PROTOCOL_VERSION, 3); $bind = @ldap_bind($this->server, $user, $passwd); if ($bind) { // return server handle