fixed login problems for AD servers
This commit is contained in:
parent
8241515be5
commit
629f3e8c49
|
@ -2,6 +2,7 @@
|
||||||
- fixed bugs:
|
- fixed bugs:
|
||||||
-> changed check for mail addresses (patch 1403922)
|
-> changed check for mail addresses (patch 1403922)
|
||||||
-> fixed JPG upload when MCrypt is enabled
|
-> fixed JPG upload when MCrypt is enabled
|
||||||
|
-> fixed login problems for AD servers
|
||||||
|
|
||||||
|
|
||||||
09.01.2006 1.0.rc1
|
09.01.2006 1.0.rc1
|
||||||
|
|
|
@ -122,6 +122,7 @@ class Ldap{
|
||||||
}
|
}
|
||||||
$bind = @ldap_bind($this->server, $user, $passwd);
|
$bind = @ldap_bind($this->server, $user, $passwd);
|
||||||
if ($bind) {
|
if ($bind) {
|
||||||
|
$return = ldap_errno($this->server);
|
||||||
// read objectClasses from server and update capabilities if needed
|
// read objectClasses from server and update capabilities if needed
|
||||||
if (! $this->objectClasses) {
|
if (! $this->objectClasses) {
|
||||||
$this->updateClasses();
|
$this->updateClasses();
|
||||||
|
@ -133,7 +134,7 @@ class Ldap{
|
||||||
get_schema_syntaxes();
|
get_schema_syntaxes();
|
||||||
}
|
}
|
||||||
// return success number
|
// return success number
|
||||||
return ldap_errno($this->server);
|
return $return;
|
||||||
}
|
}
|
||||||
// return error number
|
// return error number
|
||||||
else return ldap_errno($this->server);
|
else return ldap_errno($this->server);
|
||||||
|
|
Loading…
Reference in New Issue