From cc234c60b865b2e82fbad4d7d5f6fef8e5c0e0b2 Mon Sep 17 00:00:00 2001 From: boteroTradebe Date: Mon, 13 Oct 2025 13:42:11 -0500 Subject: [PATCH] Update LdapSync.php to populate/update user fields Added missing IF statements for address, city, state, and ZIP code. Previously, this information would be pulled via LDAP sync but would not update the user data due to the missing IF statements for these attributes. --- app/Console/Commands/LdapSync.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index 381ae900d9..78330cb6a3 100644 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -317,9 +317,21 @@ class LdapSync extends Command if($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; }