mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Added 4260352 to ldapsync enabled account constraint
This commit is contained in:
parent
22d2ad9248
commit
04562e6d4a
|
@ -189,7 +189,7 @@ class LdapSync extends Command
|
||||||
// Sync activated state for Active Directory.
|
// Sync activated state for Active Directory.
|
||||||
if ( array_key_exists('useraccountcontrol', $results[$i]) ) {
|
if ( array_key_exists('useraccountcontrol', $results[$i]) ) {
|
||||||
$enabled_accounts = [
|
$enabled_accounts = [
|
||||||
'512', '544', '66048', '66080', '262656', '262688', '328192', '328224'
|
'512', '544', '66048', '66080', '262656', '262688', '328192', '328224', '4260352'
|
||||||
];
|
];
|
||||||
$user->activated = ( in_array($results[$i]['useraccountcontrol'][0], $enabled_accounts) ) ? 1 : 0;
|
$user->activated = ( in_array($results[$i]['useraccountcontrol'][0], $enabled_accounts) ) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue