VPN: OpenVPN: Client Specific Overrides - add log entry when searching for a CSO, might help track https://github.com/opnsense/core/issues/6915

This commit is contained in:
Ad Schellevis 2023-11-15 14:04:02 +01:00
parent fdc8cc34fa
commit 59d599b2c8

View File

@ -121,6 +121,10 @@ function do_auth($common_name, $serverid, $method, $auth_file)
if ($authenticator->authenticate($username, $password)) {
// fetch or create client specific override
$common_name = empty($a_server['cso_login_matching']) ? $common_name : $username;
syslog(
LOG_NOTICE,
"Locate overwrite for '{$common_name}' using server '{$serverid}' (vpnid : {$a_server['vpnid']}"
);
$cso = (new OPNsense\OpenVPN\OpenVPN())->getOverwrite($serverid, $common_name);
if (empty($cso)) {
$cso = array("common_name" => $common_name);