summaryrefslogtreecommitdiff
path: root/interface-definitions/include/openconnect-identity-based-config.xml.i
blob: dfc51936db4721d791d56bf81e63156cdbf2d412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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 -->