]> andersk Git - openssh.git/commitdiff
- (djm) Bug #117: Don't lie to PAM about username
authordjm <djm>
Wed, 14 May 2003 00:27:09 +0000 (00:27 +0000)
committerdjm <djm>
Wed, 14 May 2003 00:27:09 +0000 (00:27 +0000)
ChangeLog
auth1.c
auth2.c

index 1775dad06b934c5e54492075b8ae3b4df38d9619..403033fca5a8643f56b11ef503b4b25f70ca9f39 100644 (file)
--- 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)
diff --git a/auth1.c b/auth1.c
index 5086a47c30976ac6b36474b433b6bfa34daaf1bb..45cc2d6f0447e1aa102f8a831a16e25d0bf7017e 100644 (file)
--- 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 ee6931810cd663edf4660a89555100130b2e6213..a761ba5fa28396804eb75f4fc49d0b604345eed9 100644 (file)
--- 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",
This page took 0.121177 seconds and 5 git commands to generate.