summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth2.c b/auth2.c
index 5ffd43fe5..f357b5826 100644
--- a/auth2.c
+++ b/auth2.c
@@ -127,6 +127,8 @@ do_authentication2()
127 /* challenge-reponse is implemented via keyboard interactive */ 127 /* challenge-reponse is implemented via keyboard interactive */
128 if (options.challenge_reponse_authentication) 128 if (options.challenge_reponse_authentication)
129 options.kbd_interactive_authentication = 1; 129 options.kbd_interactive_authentication = 1;
130 if (options.pam_authentication_via_kbd_int)
131 options.kbd_interactive_authentication = 1;
130 132
131 dispatch_init(&protocol_error); 133 dispatch_init(&protocol_error);
132 dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request); 134 dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request);
@@ -411,7 +413,7 @@ userauth_kbdint(Authctxt *authctxt)
411 authenticated = auth2_challenge(authctxt, devs); 413 authenticated = auth2_challenge(authctxt, devs);
412 414
413#ifdef USE_PAM 415#ifdef USE_PAM
414 if (authenticated == 0) 416 if (authenticated == 0 && options.pam_authentication_via_kbd_int)
415 authenticated = auth2_pam(authctxt); 417 authenticated = auth2_pam(authctxt);
416#endif 418#endif
417 xfree(lang); 419 xfree(lang);