mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
ipsec: mock authcfg for backwards compat, "none" is not an auth server #1748
This commit is contained in:
parent
6bb6110562
commit
27f26f0dab
1 changed files with 2 additions and 1 deletions
|
|
@ -908,9 +908,10 @@ EOD;
|
|||
}
|
||||
}
|
||||
}
|
||||
if ($a_client['user_source'] != "none" && $disable_xauth == false) {
|
||||
if (isset($a_client['enable']) && !$disable_xauth) {
|
||||
$strongswan .= "\t\txauth-generic {\n";
|
||||
$strongswan .= "\t\t\tscript = /usr/local/etc/inc/plugins.inc.d/ipsec/auth-user.php\n";
|
||||
$strongswan .= "\t\t\tauthcfg = unused\n";
|
||||
$strongswan .= "\t\t}\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue