Merge pull request #16337 from joakimbergros/develop

Fixed #16173: `useraccountcontrol` was not included in the ldap query attributes
This commit is contained in:
snipe
2025-02-25 13:49:38 +00:00
committed by GitHub

View File

@@ -125,6 +125,10 @@ class LdapSync extends Command
*/
$attributes = array_values(array_filter($ldap_map));
if (Setting::getSettings()->is_ad === 1 && is_null($ldap_map['active_flag'])) {
$attributes[] = 'useraccountcontrol';
}
$results = Ldap::findLdapUsers($search_base, -1, $filter, $attributes);
} catch (\Exception $e) {