From 556e03922f78f8e258c6d6630ad47569be376e11 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 10 Jun 2021 21:35:07 +0200 Subject: xml: ssh: move user/group definition to includable files --- interface-definitions/include/ssh-group.xml.i | 12 +++++++ interface-definitions/include/ssh-user.xml.i | 12 +++++++ interface-definitions/ssh.xml.in | 49 +++------------------------ 3 files changed, 29 insertions(+), 44 deletions(-) create mode 100644 interface-definitions/include/ssh-group.xml.i create mode 100644 interface-definitions/include/ssh-user.xml.i diff --git a/interface-definitions/include/ssh-group.xml.i b/interface-definitions/include/ssh-group.xml.i new file mode 100644 index 000000000..9c8b8692f --- /dev/null +++ b/interface-definitions/include/ssh-group.xml.i @@ -0,0 +1,12 @@ + + + + Allow members of a group to login + + [a-z_][a-z0-9_-]{1,31}[$]? + + illegal characters or more than 32 characters + + + + diff --git a/interface-definitions/include/ssh-user.xml.i b/interface-definitions/include/ssh-user.xml.i new file mode 100644 index 000000000..677602dd8 --- /dev/null +++ b/interface-definitions/include/ssh-user.xml.i @@ -0,0 +1,12 @@ + + + + Allow specific users to login + + [a-z_][a-z0-9_-]{1,31}[$]? + + illegal characters or more than 32 characters + + + + diff --git a/interface-definitions/ssh.xml.in b/interface-definitions/ssh.xml.in index 6faef9bd5..54742f1d0 100644 --- a/interface-definitions/ssh.xml.in +++ b/interface-definitions/ssh.xml.in @@ -1,5 +1,4 @@ - @@ -14,9 +13,7 @@ - SSH user/group access controls. Directives are processed - in the following order: deny-users, allow-users, deny-groups and - allow-groups. + SSH user/group access controls @@ -24,26 +21,8 @@ Allow user/group SSH access - - - Allow members of a group to login - - [a-z_][a-z0-9_-]{1,31}[$]? - - illegal characters or more than 32 characters - - - - - - Allow specific users to login - - [a-z_][a-z0-9_-]{1,31}[$]? - - illegal characters or more than 32 characters - - - + #include + #include @@ -51,26 +30,8 @@ Deny user/group SSH access - - - Disallow members of a group to login - - [a-z_][a-z0-9_-]{1,31}[$]? - - illegal characters or more than 32 characters - - - - - - Disallow specific users to login - - [a-z_][a-z0-9_-]{1,31}[$]? - - illegal characters or more than 32 characters - - - + #include + #include -- cgit v1.2.3