mirror of
https://github.com/openwrt/packages.git
synced 2026-12-02 22:25:30 +04:00
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:
1 parent
97373e5416
commit
494c53240f
1 file changed
+5
@@ -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 "}"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user