diff options
author | Damien Miller <djm@mindrot.org> | 2001-04-25 22:44:14 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-04-25 22:44:14 +1000 |
commit | f815442116071c69525915018edf5a32081bddc2 (patch) | |
tree | d7c25bb4c56ee54699a2d06f061fc7c4e9e85e06 /auth2.c | |
parent | 768f975b1394cc0c0313b69175ea8fcc3a4dc2bc (diff) |
- (djm) Add new server configuration directive 'PAMAuthenticationViaKbdInt'
(default: off), implies KbdInteractiveAuthentication. Suggestion from
markus@
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |