diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-07-06 02:11:01 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 02:11:01 +0700 |
commit | 6a79cfc5b1651feacd93e2dc0a56767224ffd43b (patch) | |
tree | 0569d30c1a9ff6bd005e824a2fd50d632617a397 | |
parent | 9efa2ed17852a9d4e6f93609138436b5e4b552f2 (diff) | |
parent | e5ed2821cddd3ce177d0441aceaf1c166d485419 (diff) | |
download | vyos-1x-6a79cfc5b1651feacd93e2dc0a56767224ffd43b.tar.gz vyos-1x-6a79cfc5b1651feacd93e2dc0a56767224ffd43b.zip |
Merge pull request #21 from hagbard-01/current
T720: filter is now the same like in useradd(8) including the debian …
-rw-r--r-- | interface-definitions/ssh.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/interface-definitions/ssh.xml b/interface-definitions/ssh.xml index 9b3a2fddc..e8786d202 100644 --- a/interface-definitions/ssh.xml +++ b/interface-definitions/ssh.xml @@ -21,12 +21,20 @@ <leafNode name="group"> <properties> <help>Allow members of a group to login</help> + <constraint> + <regex>^[a-z_][a-z0-9_-]{1,31}[$]?</regex> + </constraint> + <constraintErrorMessage>illegal characters or more than 32 characters</constraintErrorMessage> <multi/> </properties> </leafNode> <leafNode name="user"> <properties> <help>Allow specific users to login</help> + <constraint> + <regex>^[a-z_][a-z0-9_-]{1,31}[$]?</regex> + </constraint> + <constraintErrorMessage>illegal characters or more than 32 characters</constraintErrorMessage> <multi/> </properties> </leafNode> @@ -37,12 +45,20 @@ <leafNode name="group"> <properties> <help>Disallow members of a group to login</help> + <constraint> + <regex>^[a-z_][a-z0-9_-]{1,31}[$]?</regex> + </constraint> + <constraintErrorMessage>illegal characters or more than 32 characters</constraintErrorMessage> <multi/> </properties> </leafNode> <leafNode name="user"> <properties> <help>Disallow specific users to login</help> + <constraint> + <regex>^[a-z_][a-z0-9_-]{1,31}[$]?</regex> + </constraint> + <constraintErrorMessage>illegal characters or more than 32 characters</constraintErrorMessage> <multi/> </properties> </leafNode> |