From c0adff0dfecd716abb2670ef732e51655127cded Mon Sep 17 00:00:00 2001 From: Derek Jennings Date: Tue, 10 Sep 2013 16:02:39 +0100 Subject: add DSAAuthentication option to sshd wizard --- sshd_wizard/Sshd.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sshd_wizard') 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}; -- cgit v1.2.1