summaryrefslogtreecommitdiff
path: root/interface-definitions/include/openconnect-identity-based-config.xml.i
diff options
context:
space:
mode:
authorJamie Austin <jamiea@opusv.com.au>2023-04-20 17:07:53 +1000
committerJamie Austin <jamiea@opusv.com.au>2023-04-20 17:10:27 +1000
commit93de3abe1368cab5ab8cd292689466d7af8e86bc (patch)
tree026f9fadcbea105db2d0ba90d4d4db40c2b35d32 /interface-definitions/include/openconnect-identity-based-config.xml.i
parent80d83f6392ceac3907a9c23c6525c984e5808b4d (diff)
downloadvyos-1x-93de3abe1368cab5ab8cd292689466d7af8e86bc.tar.gz
vyos-1x-93de3abe1368cab5ab8cd292689466d7af8e86bc.zip
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.
Diffstat (limited to 'interface-definitions/include/openconnect-identity-based-config.xml.i')
-rw-r--r--interface-definitions/include/openconnect-identity-based-config.xml.i54
1 files changed, 54 insertions, 0 deletions
diff --git a/interface-definitions/include/openconnect-identity-based-config.xml.i b/interface-definitions/include/openconnect-identity-based-config.xml.i
new file mode 100644
index 000000000..dfc51936d
--- /dev/null
+++ b/interface-definitions/include/openconnect-identity-based-config.xml.i
@@ -0,0 +1,54 @@
+<!-- include start from openconnect-identity-based-config.xml.i -->
+<node name="identity-based-config">
+ <properties>
+ <help>Configures OpenConnect to search the configured directory for a config file matching the Group name or Username</help>
+ </properties>
+ <children>
+ <leafNode name="mode">
+ <properties>
+ <help>Configures OpenConnect to use config-per-group or config-per-user. Ignored if OpenConnect authentication group is configured.</help>
+ <valueHelp>
+ <format>user</format>
+ <description>OpenConnect config file loaded by matching file in configured directory to the users username</description>
+ </valueHelp>
+ <valueHelp>
+ <format>group</format>
+ <description>OpenConnect config file loaded by matching RADIUS class attribute in the RADIUS server response to a file in the configured directory</description>
+ </valueHelp>
+ <constraint>
+ <regex>(user|group)</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid mode. Must be one of: user, group</constraintErrorMessage>
+ <completionHelp>
+ <list>user group</list>
+ </completionHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="directory">
+ <properties>
+ <help>Directory to configure OpenConnect to use for matching username/group to config file</help>
+ <valueHelp>
+ <format>filename</format>
+ <description>Must be a child directory of /config/auth e.g. /config/auth/ocserv/config-per-user</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-path" argument="--directory --parent-dir /config/auth --strict"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="default-config">
+ <properties>
+ <help>Default/fallback config to use when a file cannot be found in the configured directory that matches the username/group</help>
+ <valueHelp>
+ <format>filename</format>
+ <description>Child directory of /config/auth e.g. /config/auth/ocserv/defaults/user.conf</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-path" argument="--file --parent-dir /config/auth --strict"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ #include <include/generic-disable-node.xml.i>
+ </children>
+</node>
+<!-- include end --> \ No newline at end of file