summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-10-03 12:43:20 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-10-03 12:43:20 +0200
commit2d18445dc9ce9189da11f62ae9602e1f17ee64b6 (patch)
treee7b562c058eea75733dbbcb822f7ef06e76c81fc
parent9f1bed9ff3d478f3c5e734017be39eb9973cc2cb (diff)
downloadrpg-2d18445dc9ce9189da11f62ae9602e1f17ee64b6.tar.gz
rpg-2d18445dc9ce9189da11f62ae9602e1f17ee64b6.tar.bz2
force rebind after opening new LDAP connection #751
This patch sets the private bound variable back to false if a new connection is opened. darcs-hash:20061003104320-7ad00-24370bcdc7beff5db7d7f2e68ea180763699ca5c.gz
-rw-r--r--inc/auth/ldap.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php
index 523a2a397..4e2db6c05 100644
--- a/inc/auth/ldap.class.php
+++ b/inc/auth/ldap.class.php
@@ -265,7 +265,7 @@ class auth_ldap extends auth_basic {
}
/**
- * Opens a connection to the configured LDAP server and sets the wnated
+ * Opens a connection to the configured LDAP server and sets the wanted
* option on the connection
*
* @author Andreas Gohr <andi@splitbrain.org>
@@ -273,6 +273,8 @@ class auth_ldap extends auth_basic {
function _openLDAP(){
if($this->con) return true; // connection already established
+ $this->bound = false;
+
$port = ($this->cnf['port']) ? $this->cnf['port'] : 389;
$this->con = @ldap_connect($this->cnf['server'],$port);
if(!$this->con){