diff options
author | Damien Miller <djm@mindrot.org> | 2000-12-03 11:51:51 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-12-03 11:51:51 +1100 |
commit | b84815880e453346667d6d2b3f02904674848a7a (patch) | |
tree | 03b0870fc18ac4977e1bbf4b0db0e5e79bdcea8b /auth2.c | |
parent | c72745afa96a87d41a22804f48499db12d95dfcd (diff) |
- (djm) Added patch from Nalin Dahyabhai <nalin@redhat.com> to enable
PAM authentication using KbdInteractive.
- (djm) Added another TODO
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -400,10 +400,15 @@ userauth_kbdint(Authctxt *authctxt) packet_done(); debug("keyboard-interactive language %s devs %s", lang, devs); +#ifdef USE_PAM + if (authenticated == 0) + authenticated = auth2_pam(authctxt); +#endif #ifdef SKEY /* XXX hardcoded, we should look at devs */ - if (options.skey_authentication != 0) - authenticated = auth2_skey(authctxt); + if (authenticated == 0) + if (options.skey_authentication != 0) + authenticated = auth2_skey(authctxt); #endif xfree(lang); xfree(devs); |