summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-07 22:27:51 +0100
committerChristian Poessinger <christian@poessinger.com>2022-02-13 20:35:51 +0100
commite168a0b6b8051d531d4576f72d5e3d27ed980a8a (patch)
tree37dce185a96c4f81eeacba846f7bfb4014752a9c
parentd8b60d58ac8f9910976c1a56c2d18fdcbe73f81f (diff)
downloadvyos-1x-e168a0b6b8051d531d4576f72d5e3d27ed980a8a.tar.gz
vyos-1x-e168a0b6b8051d531d4576f72d5e3d27ed980a8a.zip
xml: ssh: T4233: sync regex for allow/deny usernames to "system login"
(cherry picked from commit d96bab4e6da517f07133667834cd6f8bcfb5160f)
-rw-r--r--interface-definitions/include/ssh-user.xml.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/include/ssh-user.xml.i b/interface-definitions/include/ssh-user.xml.i
index 677602dd8..17ba05a90 100644
--- a/interface-definitions/include/ssh-user.xml.i
+++ b/interface-definitions/include/ssh-user.xml.i
@@ -3,9 +3,9 @@
<properties>
<help>Allow specific users to login</help>
<constraint>
- <regex>[a-z_][a-z0-9_-]{1,31}[$]?</regex>
+ <regex>^[-_a-zA-Z0-9.]{1,100}</regex>
</constraint>
- <constraintErrorMessage>illegal characters or more than 32 characters</constraintErrorMessage>
+ <constraintErrorMessage>Illegal characters or more than 100 characters</constraintErrorMessage>
<multi/>
</properties>
</leafNode>