diff options
author | Damien Miller <djm@mindrot.org> | 2001-06-27 16:46:02 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-06-27 16:46:02 +1000 |
commit | eea835b34cb8f6c00799da27bb69701d23eec649 (patch) | |
tree | f34f7641dfc42f46b7a5aa00787f9d81083a65df | |
parent | 172d2cb25987c18897eead6f8a51ec1a05e5440e (diff) | |
download | openssh-git-eea835b34cb8f6c00799da27bb69701d23eec649.tar.gz |
- (djm) Pull in fixes from -CURRENT:
- (djm) Reintroduce pam_session call for non-pty sessions.
- (djm) Remove redundant and incorrect test for max auth attempts in
PAM kbdint code. Based on fix from Matthew Melvin
<matthewm@webcentral.com.au>
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | auth2-pam.c | 5 | ||||
-rw-r--r-- | session.c | 1 |
3 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,10 @@ +20010627 + - (djm) Pull in fixes from -CURRENT: + - (djm) Reintroduce pam_session call for non-pty sessions. + - (djm) Remove redundant and incorrect test for max auth attempts in + PAM kbdint code. Based on fix from Matthew Melvin + <matthewm@webcentral.com.au> + 20010617 - (djm) Pull in small fix from -CURRENT for session.c: typo, use pid not s->pid, mstone@cs.loyola.edu @@ -5318,4 +5325,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1179.2.18 2001/06/17 03:40:50 djm Exp $ +$Id: ChangeLog,v 1.1179.2.19 2001/06/27 06:46:02 djm Exp $ diff --git a/auth2-pam.c b/auth2-pam.c index 490921d8..3de29ad8 100644 --- a/auth2-pam.c +++ b/auth2-pam.c @@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$Id: auth2-pam.c,v 1.10 2001/02/16 02:03:04 djm Exp $"); +RCSID("$Id: auth2-pam.c,v 1.10.8.1 2001/06/27 06:46:03 djm Exp $"); #ifdef USE_PAM #include <security/pam_appl.h> @@ -137,9 +137,6 @@ input_userauth_info_response_pam(int type, int plen, void *ctxt) if (authctxt == NULL) fatal("input_userauth_info_response_pam: no authentication context"); - if (authctxt->attempt++ >= AUTH_FAIL_MAX) - packet_disconnect("too many failed userauth_requests"); - nresp = packet_get_int(); /* Number of responses. */ debug("got %d responses", nresp); @@ -457,6 +457,7 @@ do_exec_no_pty(Session *s, const char *command) session_proctitle(s); #if defined(USE_PAM) + do_pam_session(s->pw->pw_name, NULL); do_pam_setcred(1); #endif /* USE_PAM */ |