summaryrefslogtreecommitdiffstats
path: root/sshd_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'sshd_wizard')
-rwxr-xr-xsshd_wizard/Sshd.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sshd_wizard/Sshd.pm b/sshd_wizard/Sshd.pm
index 2eab1959..239c1db3 100755
--- a/sshd_wizard/Sshd.pm
+++ b/sshd_wizard/Sshd.pm
@@ -105,6 +105,7 @@ $o->{pages} = {
auth_options => {
name => N("Authentication Method"),
pre => sub {
+ $o->{var}{DSAAuthentication} ||= $sshd->{DSAAuthentication};
$o->{var}{RSAAuthentication} ||= $sshd->{RSAAuthentication};
$o->{var}{PubkeyAuthentication} ||= $sshd->{PubkeyAuthentication};
$o->{var}{AuthorizedKeysFile} = $sshd->{AuthorizedKeysFile} || ".ssh/authorized_keys2";
@@ -113,6 +114,7 @@ $o->{pages} = {
$o->{var}{PermitEmptyPasswords} ||= $sshd->{PermitEmptyPasswords};
},
data => [
+ { label => N("DSA auth:"), val => \$o->{var}{DSAAuthentication}, list_ref => \@yesorno },
{ label => N("RSA auth:"), val => \$o->{var}{RSAAuthentication}, list_ref => \@yesorno },
{ label => N("PubKey auth:"), val => \$o->{var}{PubkeyAuthentication}, list_ref => \@yesorno },
{ label => N("Auth key file:"), val => \$o->{var}{AuthorizedKeysFile} },
@@ -235,6 +237,7 @@ sub global_config {
$o->{var}{PrintMotd} and $sshd->{PrintMotd} = $o->{var}{PrintMotd};
$o->{var}{PrintLastLog} and $sshd->{PrintLastLog} = $o->{var}{PrintLastLog};
+ $o->{var}{DSAAuthentication} and $sshd->{DSAAuthentication} = $o->{var}{DSAAuthentication};
$o->{var}{RSAAuthentication} and $sshd->{RSAAuthentication} = $o->{var}{RSAAuthentication};
$o->{var}{PubkeyAuthentication} and $sshd->{PubkeyAuthentication} = $o->{var}{PubkeyAuthentication};
$o->{var}{AuthorizedKeysFile} and $sshd->{AuthorizedKeysFile} = $o->{var}{AuthorizedKeysFile};