summaryrefslogtreecommitdiff
path: root/interface-definitions/include/radius-server-key.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-17 20:37:19 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-17 20:37:19 +0200
commit3834e3e49ca58002e7c1391b0e7f9b845b844950 (patch)
tree6894ef6579f38786c9069278a23e0d88f7cbb809 /interface-definitions/include/radius-server-key.xml.i
parent08cb4f350b335d5af401f30850d410b4be38530d (diff)
downloadvyos-1x-3834e3e49ca58002e7c1391b0e7f9b845b844950.tar.gz
vyos-1x-3834e3e49ca58002e7c1391b0e7f9b845b844950.zip
radius: T5490: add stricter validation for key
Diffstat (limited to 'interface-definitions/include/radius-server-key.xml.i')
-rw-r--r--interface-definitions/include/radius-server-key.xml.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/include/radius-server-key.xml.i b/interface-definitions/include/radius-server-key.xml.i
index c6301646b..dd5cdb0c6 100644
--- a/interface-definitions/include/radius-server-key.xml.i
+++ b/interface-definitions/include/radius-server-key.xml.i
@@ -2,6 +2,14 @@
<leafNode name="key">
<properties>
<help>Shared secret key</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Password string (key)</description>
+ </valueHelp>
+ <constraint>
+ <regex>[[:ascii:]]{1,128}</regex>
+ </constraint>
+ <constraintErrorMessage>Password must be less then 128 characters</constraintErrorMessage>
</properties>
</leafNode>
<!-- include end -->