ipsec: mock authcfg for backwards compat, "none" is not an auth server #1748

This commit is contained in:
Franco Fichtner 2017-07-30 14:04:54 +02:00
parent 6bb6110562
commit 27f26f0dab

View file

@ -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";
}
}