summaryrefslogtreecommitdiff
path: root/interface-definitions/include/auth-local-users.xml.i
diff options
context:
space:
mode:
authorgoodNETnick <33053932+goodNETnick@users.noreply.github.com>2022-04-01 12:09:56 +1000
committergoodNETnick <pknet@ya.ru>2022-04-09 01:33:25 -0400
commit1da9cc02d7c83898c267070618e2cc91e16eb1cf (patch)
treebfe672212ef22b525420428d3f36ff02d6cd5aa0 /interface-definitions/include/auth-local-users.xml.i
parentaa5b35b68c1170bfd0b9661bafa72bb10fe6ca95 (diff)
parent53e20097d227ebf4bdb4dc6c85427ec9c5ec3982 (diff)
downloadvyos-1x-1da9cc02d7c83898c267070618e2cc91e16eb1cf.tar.gz
vyos-1x-1da9cc02d7c83898c267070618e2cc91e16eb1cf.zip
ocserv: T4231: Added OTP support for Openconnect 2FA
Diffstat (limited to 'interface-definitions/include/auth-local-users.xml.i')
-rw-r--r--interface-definitions/include/auth-local-users.xml.i19
1 files changed, 11 insertions, 8 deletions
diff --git a/interface-definitions/include/auth-local-users.xml.i b/interface-definitions/include/auth-local-users.xml.i
index add2fc8e1..cb456eecf 100644
--- a/interface-definitions/include/auth-local-users.xml.i
+++ b/interface-definitions/include/auth-local-users.xml.i
@@ -34,45 +34,47 @@
<constraint>
<regex>[a-fA-F0-9]{20,10000}</regex>
</constraint>
- <constraintErrorMessage>Key name must in hex be alphanumerical only (min. 20 hex characters)</constraintErrorMessage>
+ <constraintErrorMessage>Key name must only include hex characters and be at least 20 characters long</constraintErrorMessage>
</properties>
</leafNode>
<leafNode name="otp-length">
<properties>
- <help>Optional. Number of digits in OTP code (default: 6)</help>
+ <help>Number of digits in OTP code</help>
<valueHelp>
<format>u32:6-8</format>
- <description>Number of digits in OTP code (default: 6)</description>
+ <description>Number of digits in OTP code</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 6-8"/>
</constraint>
<constraintErrorMessage>Number of digits in OTP code must be between 6 and 8</constraintErrorMessage>
</properties>
+ <defaultValue>6</defaultValue>
</leafNode>
<leafNode name="interval">
<properties>
- <help>Optional. Time tokens interval in seconds (for time tokens) (default: 30)</help>
+ <help>Time tokens interval in seconds</help>
<valueHelp>
<format>u32:5-86400</format>
- <description>Time tokens interval in seconds (for time tokens). (default: 30)</description>
+ <description>Time tokens interval in seconds.</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 5-86400"/>
</constraint>
<constraintErrorMessage>Time token interval must be between 5 and 86400 seconds</constraintErrorMessage>
</properties>
+ <defaultValue>30</defaultValue>
</leafNode>
<leafNode name="token-type">
<properties>
- <help>Optional. Token type (default: hotp-time)</help>
+ <help>Token type</help>
<valueHelp>
<format>hotp-time</format>
- <description>time-based OTP algorithm</description>
+ <description>Time-based OTP algorithm</description>
</valueHelp>
<valueHelp>
<format>hotp-event</format>
- <description>event-based OTP algorithm</description>
+ <description>Event-based OTP algorithm</description>
</valueHelp>
<constraint>
<regex>(hotp-time|hotp-event)</regex>
@@ -81,6 +83,7 @@
<list>hotp-time hotp-event</list>
</completionHelp>
</properties>
+ <defaultValue>hotp-time</defaultValue>
</leafNode>
</children>
</node>