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 /auth.c | |
parent | 16aed055787953630641d7b0aa4c1f6cf3a6269f (diff) |
- 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@
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth.c,v 1.44 2002/08/08 23:54:52 stevesk Exp $"); | 26 | RCSID("$OpenBSD: auth.c,v 1.45 2002/09/20 18:41:29 stevesk Exp $"); |
27 | 27 | ||
28 | #ifdef HAVE_LOGIN_H | 28 | #ifdef HAVE_LOGIN_H |
29 | #include <login.h> | 29 | #include <login.h> |
@@ -484,7 +484,12 @@ getpwnamallow(const char *user) | |||
484 | struct passwd *pw; | 484 | struct passwd *pw; |
485 | 485 | ||
486 | pw = getpwnam(user); | 486 | pw = getpwnam(user); |
487 | if (pw == NULL || !allowed_user(pw)) | 487 | if (pw == NULL) { |
488 | log("Illegal user %.100s from %.100s", | ||
489 | user, get_remote_ipaddr()); | ||
490 | return (NULL); | ||
491 | } | ||
492 | if (!allowed_user(pw)) | ||
488 | return (NULL); | 493 | return (NULL); |
489 | #ifdef HAVE_LOGIN_CAP | 494 | #ifdef HAVE_LOGIN_CAP |
490 | if ((lc = login_getclass(pw->pw_class)) == NULL) { | 495 | if ((lc = login_getclass(pw->pw_class)) == NULL) { |