Skip to content

Commit

Permalink
src: style
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Nov 19, 2024
1 parent f68ff83 commit 3a696d2
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,21 +260,22 @@ public function __construct($baseSearchDN = null, $ldapVersion = 3)
*/
public function setProperties($config)
{
$confMap = array("ldap_protver" => "ldapVersion",
"ldap_basedn" => "baseSearchDN",
"ldap_binddn" => "ldapBindDN",
"ldap_bindpw" => "ldapBindPassword",
"ldap_attr_user" => "ldapAttributeUser",
"ldap_extended_query" => "ldapExtendedQuery",
"ldap_authcn" => "ldapAuthcontainers",
"ldap_scope" => "ldapScope",
"local_users" => "userDNmap",
"ldap_read_properties" => "ldapReadProperties",
"ldap_sync_memberof" => "ldapSyncMemberOf",
"ldap_sync_memberof_constraint" => "ldapSyncMemberOfConstraint",
"ldap_sync_memberof_groups" => "ldapSyncMemberOfLimit",
"ldap_sync_default_groups" => "ldapSyncDefaultGroups"
);
$confMap = [
'ldap_protver' => 'ldapVersion',
'ldap_basedn' => 'baseSearchDN',
'ldap_binddn' => 'ldapBindDN',
'ldap_bindpw' => 'ldapBindPassword',
'ldap_attr_user' => 'ldapAttributeUser',
'ldap_extended_query' => 'ldapExtendedQuery',
'ldap_authcn' => 'ldapAuthcontainers',
'ldap_scope' => 'ldapScope',
'local_users' => 'userDNmap',
'ldap_read_properties' => 'ldapReadProperties',
'ldap_sync_memberof' => 'ldapSyncMemberOf',
'ldap_sync_memberof_constraint' => 'ldapSyncMemberOfConstraint',
'ldap_sync_memberof_groups' => 'ldapSyncMemberOfLimit',
'ldap_sync_default_groups' => 'ldapSyncDefaultGroups',
];

// map properties 1-on-1
foreach ($confMap as $confSetting => $objectProperty) {
Expand Down

0 comments on commit 3a696d2

Please sign in to comment.