This commit is contained in:
Jamie Cameron
2013-10-18 11:57:42 -07:00
parent 9fdd5844ce
commit 752af7e23f
3 changed files with 12 additions and 1 deletions

View File

@ -140,7 +140,12 @@ if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) {
$text{'default'}." (6)"));
}
print &ui_table_hr();
if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) {
# Challenge-response support
$chal = &find_value("ChallengeResponseAuthentication", $conf);
print &ui_table_row($text{'users_chal'},
&ui_yesno_radio('chal', lc($chal) eq 'yes'));
}
if ($version{'type'} eq 'openssh' && $version{'number'} < 3.7 ||
$version{'type'} eq 'ssh' && $version{'number'} < 2) {

View File

@ -55,6 +55,7 @@ users_authkeys_set=File under home
users_eauthkeys=Missing or invalid-looking authorized keys file
users_maxauthtries=Maximum login attempts per connection
users_emaxauthtries=Missing or non-numeric number of login attempts per connection
users_chal=Use challenge-response authentication?
net_title=Networking
net_header=Networking options

View File

@ -113,6 +113,11 @@ if ($version{'type'} eq 'openssh' && $version{'number'} < 3.7 ||
$in{'rhostsrsa'} ? 'yes' : 'no');
}
if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) {
&save_directive("ChallengeResponseAuthentication", $conf,
$in{'chal'} ? 'yes' : 'no');
}
&save_directive("IgnoreRhosts", $conf, $in{'rhosts'} ? 'yes' : 'no');
if ($version{'type'} eq 'ssh') {