Skip to content

Commit

Permalink
Update ncm-ssh/src/main/pan/components/ssh/schema.pan
Browse files Browse the repository at this point in the history
Mark  `without-password` deprecated

Co-authored-by: James Adams <james@bluezen.co.uk>
  • Loading branch information
jouvin and jrha authored Jul 21, 2023
1 parent 5410513 commit 2a31d41
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ncm-ssh/src/main/pan/components/ssh/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,18 @@ type ssh_daemon_options_type = {
"MaxStartups" ? long
"NoneEnabled" ? legacy_binary_affirmation_string
"PermitEmptyPasswords" ? legacy_binary_affirmation_string
"PermitRootLogin" ? string with match (SELF, '^(yes|prohibit-password|without-password|forced-commands-only|no)$')
"PermitRootLogin" ? choice(
'yes',
'prohibit-password',
'without-password',
'forced-commands-only',
'no',
) with {
if (SELF == 'without-password') {
deprecated(0, '"without-password" is deprecated and should be updated to "prohibit-password"');
};
true;
}
"PermitTunnel" ? string with match (SELF, '^(yes|point-to-point|ethernet|no)$')
"PermitUserEnvironment" ? legacy_binary_affirmation_string
"PidFile" ? string
Expand Down

0 comments on commit 2a31d41

Please sign in to comment.