Merged in bugfix/PMCORE-773 (pull request #7773)
PMCORE-773 Ldap> OU for retired Employees> The state is not changed to inactive after executing cron. Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
738ccd9990
@@ -1891,7 +1891,10 @@ class LdapAdvanced
|
||||
|
||||
do {
|
||||
$aAttr = $this->ldapGetAttributes($ldapcnn, $oEntry);
|
||||
$aUsers[] = $this->ldapGetUsersFromDepartment("GET", $aAttr["dn"]);
|
||||
$result = $this->ldapGetUsersFromDepartment("GET", $aAttr["dn"]);
|
||||
foreach ($result as $item) {
|
||||
$aUsers[] = $item;
|
||||
}
|
||||
} while ($oEntry = ldap_next_entry($ldapcnn, $oEntry));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user