A free open source IT asset/license management system
Possible fix for #5054 - OpenLDAP (non-AD) LDAP users being deactivated
snipe5b8cbe29e182
diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.phpindex 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