summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-12-03 11:51:51 +1100
committerDamien Miller <djm@mindrot.org>2000-12-03 11:51:51 +1100
commitb84815880e453346667d6d2b3f02904674848a7a (patch)
tree03b0870fc18ac4977e1bbf4b0db0e5e79bdcea8b /auth2.c
parentc72745afa96a87d41a22804f48499db12d95dfcd (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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index 46bf07c8..8e8edf92 100644
--- a/auth2.c
+++ b/auth2.c
@@ -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);