ssh: Add checkbox to remove login group restrictions

Tests:

- Disable the checkbox. Non-admin user who is not part freedombox-ssh group
fails to login. Admin user can login.

- Enable the checkbox and both non-admin user and admin user can login via SSH.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-12-05 20:47:11 -05:00
1 parent 21c8a8945f
commit c20f640641
2 files changed
+18

No files matched your search

+8
View File
@@ -16,3 +16,11 @@ class SSHServerForm(forms.Form):
'administrator user account before enabling this option.'),
required=False,
)
allow_all = forms.BooleanField(
label=_('Allow all users to login remotely'),
help_text=_('Allow all users who have a valid account to login '
'remotely via SSH. When disabled, only users of groups '
'root, admin and freedombox-ssh can login via SSH.'),
required=False,
)