summaryrefslogtreecommitdiffstats
path: root/application/libraries/Duser/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'application/libraries/Duser/drivers')
-rw-r--r--application/libraries/Duser/drivers/Duser_ldap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/libraries/Duser/drivers/Duser_ldap.php b/application/libraries/Duser/drivers/Duser_ldap.php
index 97a593bdc..1f1581620 100644
--- a/application/libraries/Duser/drivers/Duser_ldap.php
+++ b/application/libraries/Duser/drivers/Duser_ldap.php
@@ -54,7 +54,8 @@ class Duser_ldap extends Duser_Driver {
return false;
}
- if (ldap_bind($ds, $result[0]['dn'], $password)) {
+ // ignore errors from ldap_bind as it will throw an error if the password is incorrect
+ if (@ldap_bind($ds, $result[0]['dn'], $password)) {
ldap_unbind($ds);
return array(
"username" => $result[0][$config["username_field"]][0],