From 93de3abe1368cab5ab8cd292689466d7af8e86bc Mon Sep 17 00:00:00 2001 From: Jamie Austin Date: Thu, 20 Apr 2023 17:07:53 +1000 Subject: ocserv: T3896: refactor: change ocserv config-per-x node name Changes the node name from config-per-x to identity-based-config, as a result the j2 templates and vpn_openeconnect.py has been refactored to update the node name when accessing it's child nodes. --- data/templates/ocserv/ocserv_config.j2 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'data/templates/ocserv') diff --git a/data/templates/ocserv/ocserv_config.j2 b/data/templates/ocserv/ocserv_config.j2 index ea2c9e29f..52c208c0d 100644 --- a/data/templates/ocserv/ocserv_config.j2 +++ b/data/templates/ocserv/ocserv_config.j2 @@ -12,11 +12,11 @@ run-as-group = daemon {% if "radius" in authentication.mode %} auth = "radius [config=/run/ocserv/radiusclient.conf{{ ',groupconfig=true' if authentication.radius.groupconfig is vyos_defined else '' }}]" -{% if "config_per_x" in authentication %} -{% if authentication.config_per_x.disabled is not vyos_defined %} -{% if "group" in authentication.config_per_x.mode %} -config-per-group = {{ authentication.config_per_x.directory }} -default-group-config = {{ authentication.config_per_x.default_config }} +{% if "identity_based_config" in authentication %} +{% if authentication.identity_based_config.disabled is not vyos_defined %} +{% if "group" in authentication.identity_based_config.mode %} +config-per-group = {{ authentication.identity_based_config.directory }} +default-group-config = {{ authentication.identity_based_config.default_config }} {% endif %} {% endif %} {% endif %} @@ -32,10 +32,10 @@ auth = "plain[/run/ocserv/ocpasswd]" auth = "plain[/run/ocserv/ocpasswd]" {% endif %} -{% if "config_per_x" in authentication %} -{% if "user" in authentication.config_per_x.mode %} -config-per-user = {{ authentication.config_per_x.directory }} -default-user-config = {{ authentication.config_per_x.default_config }} +{% if "identity_based_config" in authentication %} +{% if "user" in authentication.identity_based_config.mode %} +config-per-user = {{ authentication.identity_based_config.directory }} +default-user-config = {{ authentication.identity_based_config.default_config }} {% endif %} {% endif %} -- cgit v1.2.3