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:
Roly Rudy Gutierrez Pinto
2021-01-27 19:15:39 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 5 additions and 2 deletions

View File

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