Added 4260352 to ldapsync enabled account constraint

This commit is contained in:
snipe 2019-10-18 17:48:50 -07:00
parent 22d2ad9248
commit 04562e6d4a

View file

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