]> andersk Git - openssh.git/blobdiff - auth2.c
- (djm) Add new server configuration directive 'PAMAuthenticationViaKbdInt'
[openssh.git] / auth2.c
diff --git a/auth2.c b/auth2.c
index 5ffd43fe5b819550ae650245ed11ee7edc254849..f357b582633c021bf0287e21993397a11ca399e3 100644 (file)
--- a/auth2.c
+++ b/auth2.c
@@ -127,6 +127,8 @@ do_authentication2()
        /* challenge-reponse is implemented via keyboard interactive */
        if (options.challenge_reponse_authentication)
                options.kbd_interactive_authentication = 1;
+       if (options.pam_authentication_via_kbd_int)
+               options.kbd_interactive_authentication = 1;
 
        dispatch_init(&protocol_error);
        dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request);
@@ -411,7 +413,7 @@ userauth_kbdint(Authctxt *authctxt)
                authenticated = auth2_challenge(authctxt, devs);
 
 #ifdef USE_PAM
-       if (authenticated == 0)
+       if (authenticated == 0 && options.pam_authentication_via_kbd_int)
                authenticated = auth2_pam(authctxt);
 #endif
        xfree(lang);
This page took 0.070311 seconds and 4 git commands to generate.