From 70794c8266ffefc6660daac3bc8a63b412d7b350 Mon Sep 17 00:00:00 2001 From: Jamie Austin Date: Thu, 26 Jan 2023 16:34:36 +1100 Subject: ocserv: T3896: add CLI options to configure ocserv config-per-user/group Adds CLI configurations under VPN - OpenConnect to facilitate per user/group vpn session configurations. Validation has been added to restrict config-per-group to be exclusive to OpenConnect RADIUS authentication as the config file is looked up based on a RADIUS response attribute - as well as sanity check that the necessary configs are configured when not disabled. --- .../include/openconnect-config-per-x.xml.i | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 interface-definitions/include/openconnect-config-per-x.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/openconnect-config-per-x.xml.i b/interface-definitions/include/openconnect-config-per-x.xml.i new file mode 100644 index 000000000..71bbdd68f --- /dev/null +++ b/interface-definitions/include/openconnect-config-per-x.xml.i @@ -0,0 +1,54 @@ + + + + Configures ocserv to search the configured directory for a config file matching the Group name or username + + + + + ocserv will ignore these configs if groupconfig is enabled TODO: explain this in better detail - need to make it clear this is in reference to the groupconfig vyos config that lives up one level from here + + user + ocserv config file loaded by matching file in configured directory to the users username + + + group + ocserv config file loaded by matching RADIUS class attribute in the RADIUS server response to a file in the configured directory + + + (user|group) + + Invalid config-per-x. Must be one of: user, group + + user group + + + + + + Child directory of /config/auth e.g. /config/auth/ocserv/config-per-user + + filename + Child directory of /config/auth e.g. /config/auth/ocserv/config-per-user + + + + + + + + + Default/fallback config to use when a file cannot be found in the configured directory that matches the username/group + + filename + Child directory of /config/auth e.g. /config/auth/ocserv/defaults/user.conf + + + + + + + #include + + + \ No newline at end of file -- cgit v1.2.3