diff options
author | hagbard <vyosdev@derith.de> | 2018-07-05 11:31:18 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2018-07-05 11:31:18 -0700 |
commit | e5ed2821cddd3ce177d0441aceaf1c166d485419 (patch) | |
tree | 0569d30c1a9ff6bd005e824a2fd50d632617a397 /interface-definitions/ssh.xml | |
parent | 9efa2ed17852a9d4e6f93609138436b5e4b552f2 (diff) | |
download | vyos-1x-e5ed2821cddd3ce177d0441aceaf1c166d485419.tar.gz vyos-1x-e5ed2821cddd3ce177d0441aceaf1c166d485419.zip |
T720: filter is now the same like in useradd(8) including the debian restrictions for lenght
Diffstat (limited to 'interface-definitions/ssh.xml')
-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> |