summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-14 02:27:09 +0200
committerDamien Miller <djm@mindrot.org>2003-05-14 02:27:09 +0200
commit1a27a1ee8c0ddd6f390feade92259c001f36530f (patch)
tree3b1903292c708e6665fda8489cd39bee4a2dd178
parent - (djm) Redhat spec: Don't install profile.d scripts when not (diff)
downloadopenssh-1a27a1ee8c0ddd6f390feade92259c001f36530f.tar.xz
openssh-1a27a1ee8c0ddd6f390feade92259c001f36530f.zip
- (djm) Bug #117: Don't lie to PAM about username
-rw-r--r--ChangeLog5
-rw-r--r--auth1.c2
-rw-r--r--auth2.c2
3 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bc1fb1387..37694bf37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20030514
+ - (djm) Bug #117: Don't lie to PAM about username
+
20030512
- (djm) Redhat spec: Don't install profile.d scripts when not
building with GNOME/GTK askpass (patch from bet@rahul.net)
@@ -1384,4 +1387,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
-$Id: ChangeLog,v 1.2675 2003/05/12 08:15:49 djm Exp $
+$Id: ChangeLog,v 1.2676 2003/05/14 00:27:09 djm Exp $
diff --git a/auth1.c b/auth1.c
index 5086a47c3..45cc2d6f0 100644
--- a/auth1.c
+++ b/auth1.c
@@ -413,7 +413,7 @@ do_authentication(void)
use_privsep ? " [net]" : "");
#ifdef USE_PAM
- PRIVSEP(start_pam(authctxt->pw == NULL ? "NOUSER" : user));
+ PRIVSEP(start_pam(user));
#endif
/*
diff --git a/auth2.c b/auth2.c
index ee6931810..a761ba5fa 100644
--- a/auth2.c
+++ b/auth2.c
@@ -162,7 +162,7 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt)
} else {
logit("input_userauth_request: illegal user %s", user);
#ifdef USE_PAM
- PRIVSEP(start_pam("NOUSER"));
+ PRIVSEP(start_pam(user));
#endif
}
setproctitle("%s%s", authctxt->pw ? user : "unknown",