From 5cde61131728d5319c8a832ddafe915f7b762a97 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 11 Apr 2005 10:45:03 +0000 Subject: [PATCH] Correctly set the LDAP Protocol Version in the OpenLDAP2 case. --- lib/authentication/class.AuthLdap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/authentication/class.AuthLdap.php b/lib/authentication/class.AuthLdap.php index 0405b65..c187f5e 100644 --- a/lib/authentication/class.AuthLdap.php +++ b/lib/authentication/class.AuthLdap.php @@ -129,9 +129,9 @@ class AuthLdap { function connect() { foreach ($this->server as $key => $host) { $this->connection = ldap_connect( $host); - if ( $this->serverType == "OpenLDAP2" ) { - ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); - } + if ( $this->serverType == "OpenLDAP2" ) { + ldap_set_option($this->connection, LDAP_OPT_PROTOCOL_VERSION, 3); + } if ( $this->connection) { if (($this->serverType == "ActiveDirectory") || (($this->serverType == "OpenLDAP2") && -- libgit2 0.21.4