strongswan: add xauth_id option to local section

Add the uci option "xauth_id" to the local section. It is only written
if auth is "xauth" or "xauth-<backend>".

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert authored and Florian Eckert committed 2026-10-30 08:07:18 +01:00
1 parent 97373e5416
commit 494c53240f
1 file changed
+5
+5
View File
@@ -654,6 +654,7 @@ config_local() {
local pubkey
local aaa_id
local eap_id
local xauth_id
local key
local suffix
@@ -661,6 +662,7 @@ config_local() {
config_get id "$conf" id ""
config_get aaa_id "$conf" aaa_id ""
config_get eap_id "$conf" eap_id ""
config_get xauth_id "$conf" xauth_id ""
config_list_foreach "$conf" certs append_var certs ","
[ -z "$certs" ] && config_get certs "$conf" certs ""
config_list_foreach "$conf" pubkeys append_var pubkeys ","
@@ -714,6 +716,9 @@ config_local() {
[ -n "$eap_id" ] && swanctl_xappend3 "eap_id = \"$eap_id\""
[ -n "$aaa_id" ] && swanctl_xappend3 "aaa_id = \"$aaa_id\""
;;
xauth|xauth-*)
[ -n "$xauth_id" ] && swanctl_xappend3 "xauth_id = \"$xauth_id\""
;;
esac
swanctl_xappend2 "}"
}