Skip to content

A free open source IT asset/license management system

nullifies location after ldap user sync

Godfrey Md548b800d522
diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php
index 05f60ee4e1..bd91c2bf25 100755
--- a/app/Console/Commands/LdapSync.php
+++ b/app/Console/Commands/LdapSync.php
@@ -390,7 +390,7 @@ class LdapSync extends Command
$user->location_id = $location->id;
}
}
-
+ $location = null;
$user->ldap_import = 1;
$errors = '';