fixed login problems for AD servers
This commit is contained in:
parent
8241515be5
commit
629f3e8c49
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue