Also mark as bad attempts those who come in a bad users (Frank Kardel)
This commit is contained in:
parent
f2f615bb86
commit
72106c5215
6
crypto/external/bsd/openssh/dist/auth1.c
vendored
6
crypto/external/bsd/openssh/dist/auth1.c
vendored
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: auth1.c,v 1.9 2014/10/19 16:30:58 christos Exp $ */
|
/* $NetBSD: auth1.c,v 1.10 2015/02/14 15:41:21 christos Exp $ */
|
||||||
/* $OpenBSD: auth1.c,v 1.82 2014/07/15 15:54:14 millert Exp $ */
|
/* $OpenBSD: auth1.c,v 1.82 2014/07/15 15:54:14 millert Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
__RCSID("$NetBSD: auth1.c,v 1.9 2014/10/19 16:30:58 christos Exp $");
|
__RCSID("$NetBSD: auth1.c,v 1.10 2015/02/14 15:41:21 christos Exp $");
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
|
|
||||||
@ -41,6 +41,7 @@ __RCSID("$NetBSD: auth1.c,v 1.9 2014/10/19 16:30:58 christos Exp $");
|
|||||||
#endif
|
#endif
|
||||||
#include "monitor_wrap.h"
|
#include "monitor_wrap.h"
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
|
#include "pfilter.h"
|
||||||
|
|
||||||
/* import */
|
/* import */
|
||||||
extern ServerOptions options;
|
extern ServerOptions options;
|
||||||
@ -445,6 +446,7 @@ do_authentication(Authctxt *authctxt)
|
|||||||
else {
|
else {
|
||||||
debug("do_authentication: invalid user %s", user);
|
debug("do_authentication: invalid user %s", user);
|
||||||
authctxt->pw = fakepw();
|
authctxt->pw = fakepw();
|
||||||
|
pfilter_notify(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configuration may have changed as a result of Match */
|
/* Configuration may have changed as a result of Match */
|
||||||
|
6
crypto/external/bsd/openssh/dist/auth2.c
vendored
6
crypto/external/bsd/openssh/dist/auth2.c
vendored
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: auth2.c,v 1.9 2014/10/19 16:30:58 christos Exp $ */
|
/* $NetBSD: auth2.c,v 1.10 2015/02/14 15:41:21 christos Exp $ */
|
||||||
/* $OpenBSD: auth2.c,v 1.132 2014/07/15 15:54:14 millert Exp $ */
|
/* $OpenBSD: auth2.c,v 1.132 2014/07/15 15:54:14 millert Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
@ -25,7 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
__RCSID("$NetBSD: auth2.c,v 1.9 2014/10/19 16:30:58 christos Exp $");
|
__RCSID("$NetBSD: auth2.c,v 1.10 2015/02/14 15:41:21 christos Exp $");
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
@ -52,6 +52,7 @@ __RCSID("$NetBSD: auth2.c,v 1.9 2014/10/19 16:30:58 christos Exp $");
|
|||||||
#include "pathnames.h"
|
#include "pathnames.h"
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "canohost.h"
|
#include "canohost.h"
|
||||||
|
#include "pfilter.h"
|
||||||
|
|
||||||
#ifdef GSSAPI
|
#ifdef GSSAPI
|
||||||
#include "ssh-gss.h"
|
#include "ssh-gss.h"
|
||||||
@ -256,6 +257,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt)
|
|||||||
} else {
|
} else {
|
||||||
logit("input_userauth_request: invalid user %s", user);
|
logit("input_userauth_request: invalid user %s", user);
|
||||||
authctxt->pw = fakepw();
|
authctxt->pw = fakepw();
|
||||||
|
pfilter_notify(1);
|
||||||
}
|
}
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
if (options.use_pam)
|
if (options.use_pam)
|
||||||
|
Loading…
Reference in New Issue
Block a user