Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

challenge-response option https://sourceforge.net/p/webadmin/bugs/4310/

  • Loading branch information...
commit 752af7e23f89db3d0939fe0d15b5779475769b96 1 parent 9fdd584
Jamie Cameron jcameron authored
Showing with 12 additions and 1 deletion.
  1. +6 −1 sshd/edit_users.cgi
  2. +1 −0  sshd/lang/en
  3. +5 −0 sshd/save_users.cgi
7 sshd/edit_users.cgi
View
@@ -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) {
1  sshd/lang/en
View
@@ -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
5 sshd/save_users.cgi
View
@@ -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') {
Please sign in to comment.
Something went wrong with that request. Please try again.