From efae7a5fd963551f1e783e185dbf0211ee75f7e1 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 5 Feb 2024 18:02:32 +0100 Subject: [PATCH] VPN: OpenVPN: Servers - cso_login_matching ignored during authentication, closes https://github.com/opnsense/core/issues/7199 --- src/opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.php b/src/opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.php index 5e6df8f87..e42531822 100644 --- a/src/opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.php +++ b/src/opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.php @@ -373,7 +373,7 @@ class OpenVPN extends BaseModel 'vpnid' => (string)$item->vpnid, 'authmode' => (string)$item->authmode, 'local_group' => (string)$item->local_group, - 'cso_login_matching' => (string)$item->{'use-common-name'}, + 'cso_login_matching' => (string)$item->cso_login_matching, 'strictusercn' => (string)$item->strictusercn, 'dev_mode' => (string)$item->dev_mode, 'topology_subnet' => (string)$item->topology_subnet,