diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index 4ec7509d15..bcbc6a7b51 100755 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -169,6 +169,11 @@ class LdapSync extends Command $item['activated'] = ( in_array($results[$i]['useraccountcontrol'][0], $enabled_accounts) ) ? 1 : 0; } else { $item['activated'] = 0; + + // If there is no activated flag, assume this is handled via the OU and activate the users + if (empty($ldap_result_active_flag)) { + $item['activated'] = 1; + } } // User exists