diff --git a/lam/HISTORY b/lam/HISTORY index b89449dc..58bc964d 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -2,6 +2,7 @@ - fixed bugs: -> changed check for mail addresses (patch 1403922) -> fixed JPG upload when MCrypt is enabled + -> fixed login problems for AD servers 09.01.2006 1.0.rc1 diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index 26cc79c1..f2975fc3 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -122,6 +122,7 @@ class Ldap{ } $bind = @ldap_bind($this->server, $user, $passwd); if ($bind) { + $return = ldap_errno($this->server); // read objectClasses from server and update capabilities if needed if (! $this->objectClasses) { $this->updateClasses(); @@ -133,7 +134,7 @@ class Ldap{ get_schema_syntaxes(); } // return success number - return ldap_errno($this->server); + return $return; } // return error number else return ldap_errno($this->server);