A free open source IT asset/license management system
Update LdapSync.php to populate/update user fields
boteroTradebecc234c60b865
diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.phpindex 381ae900d9..78330cb6a3 100644--- a/app/Console/Commands/LdapSync.php+++ b/app/Console/Commands/LdapSync.php@@ -317,9 +317,21 @@ class LdapSync extends Commandif($ldap_map["jobtitle"] != null){$user->jobtitle = $item['jobtitle'];}+ if($ldap_map["address"] != null){+ $user->address = $item['address'];+ }+ if($ldap_map["city"] != null){+ $user->city = $item['city'];+ }+ if($ldap_map["state"] != null){+ $user->state = $item['state'];+ }if($ldap_map["country"] != null){$user->country = $item['country'];}+ if($ldap_map["zip"] != null){+ $user->zip = $item['zip'];+ }if($ldap_map["dept"] != null){$user->department_id = $department->id;}