Merge branch 'master' of https://github.com/snipe/snipe-it
This commit is contained in:
commit
4fe689dc5d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue