summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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){