added sshd_challenge_response_authentication variable, with the default value set to no

This commit is contained in:
Micah Anderson 2008-09-26 17:05:49 -04:00
parent d6f9d64d9b
commit 51c18b6b8f
5 changed files with 29 additions and 5 deletions

View file

@ -38,6 +38,11 @@
# sshd_password_authentication: If you want to enable password authentication or not
# Valid values: yes or no
# Default: no
#
# sshd_challenge_response_authentication: If you want to enable ChallengeResponseAuthentication or not
# When disabled, s/key passowords are disabled
# Valid values: yes or no
# Default: no
#
# sshd_x11_forwarding: If you want to enable x11 forwarding
# Valid Values: yes or no
@ -88,6 +93,10 @@ class sshd::base {
'' => 'no',
default => $sshd_agent_forwarding
}
$real_sshd_challenge_response_authentication = $sshd_challenge_response_authentication ? {
'' => 'no',
default => $sshd_challenge_response_authentication
}
file { 'sshd_config':
path => '/etc/ssh/sshd_config',

View file

@ -67,8 +67,11 @@ PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
<%- if real_sshd_challenge_response_authentication.to_s == 'yes' then %>
ChallengeResponseAuthentication yes
<%- else %>
ChallengeResponseAuthentication no
<%- end %>
# Kerberos options
#KerberosAuthentication no

View file

@ -52,8 +52,12 @@ HostbasedAuthentication no
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Uncomment to disable s/key passwords
#ChallengeResponseAuthentication no
# Change to no to disable s/key passwords
<%- if real_sshd_challenge_response_authentication.to_s == 'yes' then %>
ChallengeResponseAuthentication yes
<%- else %>
ChallengeResponseAuthentication no
<%- end %>
# To disable tunneled clear text passwords, change to no here!
<%- if real_sshd_password_authentication.to_s == 'yes' then %>

View file

@ -70,7 +70,11 @@ PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
<%- if real_sshd_challenge_response_authentication.to_s == 'yes' then %>
ChallengeResponseAuthentication yes
<%- else %>
ChallengeResponseAuthentication no
<%- end %>
# Kerberos options
#KerberosAuthentication no

View file

@ -63,7 +63,11 @@ PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
<%- if real_sshd_challenge_response_authentication.to_s == 'yes' then %>
ChallengeResponseAuthentication yes
<%- else %>
ChallengeResponseAuthentication no
<%- end %>
# Kerberos options
#KerberosAuthentication no