mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
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:
parent
fdc8cc34fa
commit
59d599b2c8
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user