diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-22 01:26:51 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-22 01:26:51 +1000 |
commit | 6f0a188857a459b743d27045cdb8760c903ad3d3 (patch) | |
tree | 6635da15ef3396a2cb6387e2af58cca2c63d7490 | |
parent | 16aed055787953630641d7b0aa4c1f6cf3a6269f (diff) | |
download | openssh-git-6f0a188857a459b743d27045cdb8760c903ad3d3.tar.gz |
- stevesk@cvs.openbsd.org 2002/09/20 18:41:29
[auth.c]
log illegal user here for missing privsep case (ssh2).
this is executed in the monitor. ok markus@
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | auth.c | 9 |
2 files changed, 12 insertions, 3 deletions
@@ -8,6 +8,10 @@ - stevesk@cvs.openbsd.org 2002/09/19 16:03:15 [serverloop.c] log IP address also; ok markus@ + - stevesk@cvs.openbsd.org 2002/09/20 18:41:29 + [auth.c] + log illegal user here for missing privsep case (ssh2). + this is executed in the monitor. ok markus@ 20020919 - (djm) OpenBSD CVS Sync @@ -689,4 +693,4 @@ save auth method before monitor_reset_key_state(); bugzilla bug #284; ok provos@ -$Id: ChangeLog,v 1.2474 2002/09/21 15:26:27 djm Exp $ +$Id: ChangeLog,v 1.2475 2002/09/21 15:26:51 djm Exp $ @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth.c,v 1.44 2002/08/08 23:54:52 stevesk Exp $"); +RCSID("$OpenBSD: auth.c,v 1.45 2002/09/20 18:41:29 stevesk Exp $"); #ifdef HAVE_LOGIN_H #include <login.h> @@ -484,7 +484,12 @@ getpwnamallow(const char *user) struct passwd *pw; pw = getpwnam(user); - if (pw == NULL || !allowed_user(pw)) + if (pw == NULL) { + log("Illegal user %.100s from %.100s", + user, get_remote_ipaddr()); + return (NULL); + } + if (!allowed_user(pw)) return (NULL); #ifdef HAVE_LOGIN_CAP if ((lc = login_getclass(pw->pw_class)) == NULL) { |