summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-07 22:27:51 +0100
committerChristian Poessinger <christian@poessinger.com>2022-02-07 22:27:51 +0100
commitd96bab4e6da517f07133667834cd6f8bcfb5160f (patch)
tree4ae8e0b3d0e12984b0346fcd29315048e572e4d8 /interface-definitions
parentb4185f8356d69476292906ebe32daf1c4867601a (diff)
downloadvyos-1x-d96bab4e6da517f07133667834cd6f8bcfb5160f.tar.gz
vyos-1x-d96bab4e6da517f07133667834cd6f8bcfb5160f.zip
xml: ssh: T4233: sync regex for allow/deny usernames to "system login"
Diffstat (limited to 'interface-definitions')
-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>