fixed login problems for AD servers

This commit is contained in:
Roland Gruber 2006-02-02 19:56:41 +00:00
parent 8241515be5
commit 629f3e8c49
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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);