diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-09 06:48:55 +0000 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-02-09 06:49:01 +0000 |
commit | e22e9c9210cb561fc6062ff5b1048e64cdc85c36 (patch) | |
tree | b7f3d983a2cbd63879f4aed7130c35feb666007a | |
parent | f234b602c4b0554456c494451b438d32f3386d69 (diff) | |
download | vyos-1x-e22e9c9210cb561fc6062ff5b1048e64cdc85c36.tar.gz vyos-1x-e22e9c9210cb561fc6062ff5b1048e64cdc85c36.zip |
wwan: T3622: add constraint for username/password CLI nodes
- Username is up to 128 alphanumerical characters, -, _, #, and @
- Password is limited to ASCII characters only, with a total lenght of 128
-rw-r--r-- | interface-definitions/include/interface/authentication.xml.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/authentication.xml.i b/interface-definitions/include/interface/authentication.xml.i index c097ca9dd..7d8352f2e 100644 --- a/interface-definitions/include/interface/authentication.xml.i +++ b/interface-definitions/include/interface/authentication.xml.i @@ -11,6 +11,10 @@ <format>txt</format> <description>Username used for connection</description> </valueHelp> + <constraint> + <regex>[[:alnum:]][-_#@[:alnum:]]{0,127}</regex> + </constraint> + <constraintErrorMessage>Username is limited to alphanumerical characters, -, _, #, and @ with a total lenght of 128</constraintErrorMessage> </properties> </leafNode> <leafNode name="password"> @@ -20,6 +24,10 @@ <format>txt</format> <description>Password used for connection</description> </valueHelp> + <constraint> + <regex>[[:ascii:]]{1,128}</regex> + </constraint> + <constraintErrorMessage>Password is limited to ASCII characters only, with a total lenght of 128</constraintErrorMessage> </properties> </leafNode> </children> |