diff --git a/sshd/edit_users.cgi b/sshd/edit_users.cgi index 71bc936fd..2c9ddb22b 100755 --- a/sshd/edit_users.cgi +++ b/sshd/edit_users.cgi @@ -141,9 +141,13 @@ if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) { if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) { # Challenge-response support - $chal = &find_value("ChallengeResponseAuthentication", $conf); + my $chall_name = $version{'number'} >= 6.2 ? + "KbdInteractiveAuthentication" : "ChallengeResponseAuthentication"; + $chal = &find_value($chall_name, $conf); + my $chall_def = $version{'number'} >= 6.2 ? + lc($chal) ne 'no' : lc($chal) eq 'yes'; print &ui_table_row($text{'users_chal'}, - &ui_yesno_radio('chal', lc($chal) eq 'yes')); + &ui_yesno_radio('chal', $chall_def)); } if ($version{'type'} eq 'openssh' && $version{'number'} < 3.7 || diff --git a/sshd/save_users.cgi b/sshd/save_users.cgi index e71495ade..2083a8411 100755 --- a/sshd/save_users.cgi +++ b/sshd/save_users.cgi @@ -115,8 +115,9 @@ if ($version{'type'} eq 'openssh' && $version{'number'} < 3.7 || } if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) { - &save_directive("ChallengeResponseAuthentication", $conf, - $in{'chal'} ? 'yes' : 'no'); + my $chall_name = $version{'number'} >= 6.2 ? + "KbdInteractiveAuthentication" : "ChallengeResponseAuthentication"; + &save_directive($chall_name, $conf, $in{'chal'} ? 'yes' : 'no'); } &save_directive("IgnoreRhosts", $conf, $in{'rhosts'} ? 'yes' : 'no');