diff --git a/manifests/server.pp b/manifests/server.pp index 9b9aff9..8beec03 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -59,6 +59,7 @@ $listen_to = [], $host_key_files = [], $client_alive_interval = 600, + $challenge_response = false, $client_alive_count = 3, $allow_root_with_key = false, $ipv6_enabled = false, @@ -94,6 +95,11 @@ false => 'no' } + $challenge_response_on = $challenge_response ? { + true => 'yes', + false => 'no' + } + $agent_forwarding = $allow_agent_forwarding ? { true => 'yes', false => 'no' @@ -191,7 +197,7 @@ 'UsePAM' => $use_pam_option, 'PasswordAuthentication' => 'no', 'PermitEmptyPasswords' => 'no', - 'ChallengeResponseAuthentication' => 'no', + 'ChallengeResponseAuthentication' => $challenge_response_on, # Only enable Kerberos authentication if it is configured. 'KerberosAuthentication' => 'no',