summaryrefslogtreecommitdiff
path: root/interface-definitions
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
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')
-rw-r--r--interface-definitions/include/auth-local-users.xml.i19
-rw-r--r--interface-definitions/include/bgp/protocol-common-config.xml.i6
-rw-r--r--interface-definitions/vpn_openconnect.xml.in4
3 files changed, 19 insertions, 10 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>
diff --git a/interface-definitions/include/bgp/protocol-common-config.xml.i b/interface-definitions/include/bgp/protocol-common-config.xml.i
index 38337b032..b59ff0287 100644
--- a/interface-definitions/include/bgp/protocol-common-config.xml.i
+++ b/interface-definitions/include/bgp/protocol-common-config.xml.i
@@ -1430,6 +1430,12 @@
<valueless/>
</properties>
</leafNode>
+ <leafNode name="no-suppress-duplicates">
+ <properties>
+ <help>Disable suppress duplicate updates if the route actually not changed</help>
+ <valueless/>
+ </properties>
+ </leafNode>
<leafNode name="reject-as-sets">
<properties>
<help>Reject routes with AS_SET or AS_CONFED_SET flag</help>
diff --git a/interface-definitions/vpn_openconnect.xml.in b/interface-definitions/vpn_openconnect.xml.in
index 631c3b739..05458ed34 100644
--- a/interface-definitions/vpn_openconnect.xml.in
+++ b/interface-definitions/vpn_openconnect.xml.in
@@ -23,7 +23,7 @@
<help>Use local username/password configuration (OTP supported)</help>
<valueHelp>
<format>password</format>
- <description>Password-only local authentication (default)</description>
+ <description>Password-only local authentication</description>
</valueHelp>
<valueHelp>
<format>otp</format>
@@ -36,7 +36,7 @@
<constraint>
<regex>^(password|otp|password-otp)$</regex>
</constraint>
- <constraintErrorMessage>Invalid authentication mode</constraintErrorMessage>
+ <constraintErrorMessage>Invalid authentication mode. Must be one of: password, otp or password-otp </constraintErrorMessage>
<completionHelp>
<list>otp password password-otp</list>
</completionHelp>