mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
VPN: OpenVPN - obey username_as_common_name setting, closes https://github.com/opnsense/core/issues/6915
This commit is contained in:
parent
59d599b2c8
commit
bdaa47ee35
@ -295,6 +295,7 @@ class OpenVPN extends BaseModel
|
||||
'vpnid' => (string)$node->vpnid,
|
||||
'authmode' => (string)$node->authmode,
|
||||
'local_group' => $local_group,
|
||||
'cso_login_matching' => (string)$node->username_as_common_name,
|
||||
'strictusercn' => (string)$node->strictusercn,
|
||||
'dev_mode' => (string)$node->dev_type,
|
||||
'topology_subnet' => $node->topology == 'subnet' ? '1' : '0',
|
||||
@ -331,7 +332,7 @@ class OpenVPN extends BaseModel
|
||||
'vpnid' => (string)$item->vpnid,
|
||||
'authmode' => (string)$item->authmode,
|
||||
'local_group' => (string)$item->local_group,
|
||||
'cso_login_matching' => (string)$item->username_as_common_name,
|
||||
'cso_login_matching' => (string)$item->{'use-common-name'},
|
||||
'strictusercn' => (string)$item->strictusercn,
|
||||
'dev_mode' => (string)$item->dev_mode,
|
||||
'topology_subnet' => (string)$item->topology_subnet,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user