зеркало из https://github.com/Azure/sonic-openssh.git
- (djm) Remove redundant and incorrect test for max auth attempts in
PAM kbdint code. Based on fix from Matthew Melvin <matthewm@webcentral.com.au>
This commit is contained in:
Родитель
665af9cae7
Коммит
ec9868aa3c
|
@ -1,5 +1,8 @@
|
||||||
20010627
|
20010627
|
||||||
- (djm) Reintroduce pam_session call for non-pty sessions.
|
- (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>
|
||||||
|
|
||||||
20010625
|
20010625
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
|
@ -5794,4 +5797,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1326 2001/06/26 23:34:15 djm Exp $
|
$Id: ChangeLog,v 1.1327 2001/06/27 05:36:43 djm Exp $
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "includes.h"
|
#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.11 2001/06/27 05:36:44 djm Exp $");
|
||||||
|
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
#include <security/pam_appl.h>
|
#include <security/pam_appl.h>
|
||||||
|
@ -137,9 +137,6 @@ input_userauth_info_response_pam(int type, int plen, void *ctxt)
|
||||||
if (authctxt == NULL)
|
if (authctxt == NULL)
|
||||||
fatal("input_userauth_info_response_pam: no authentication context");
|
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. */
|
nresp = packet_get_int(); /* Number of responses. */
|
||||||
debug("got %d responses", nresp);
|
debug("got %d responses", nresp);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче