]> git.pld-linux.org Git - packages/openssh.git/blob - openssh-3.4p1-owl-hide-unknown.diff
- collection of _very_ usefull patches from Owl distro
[packages/openssh.git] / openssh-3.4p1-owl-hide-unknown.diff
1 diff -ur openssh-3.4p1.orig/auth.c openssh-3.4p1/auth.c
2 --- openssh-3.4p1.orig/auth.c   Wed May 22 09:06:28 2002
3 +++ openssh-3.4p1/auth.c        Sat Jun 29 21:02:35 2002
4 @@ -251,8 +251,9 @@
5         authlog("%s %s for %s%.100s from %.200s port %d%s",
6             authmsg,
7             method,
8 -           authctxt->valid ? "" : "illegal user ",
9 -           authctxt->user,
10 +           !authctxt->valid ? "UNKNOWN USER" :
11 +           (authctxt->pw->pw_uid == 0 ? "ROOT USER " : ""),
12 +           authctxt->valid ? authctxt->user : "",
13             get_remote_ipaddr(),
14             get_remote_port(),
15             info);
16 diff -ur openssh-3.4p1.orig/auth1.c openssh-3.4p1/auth1.c
17 --- openssh-3.4p1.orig/auth1.c  Fri Jun 21 10:21:11 2002
18 +++ openssh-3.4p1/auth1.c       Sat Jun 29 21:02:35 2002
19 @@ -379,7 +379,7 @@
20         else
21                 debug("do_authentication: illegal user %s", user);
22  
23 -       setproctitle("%s%s", authctxt->pw ? user : "unknown",
24 +       setproctitle("%s%s", authctxt->pw ? user : "UNKNOWN USER",
25             use_privsep ? " [net]" : "");
26  
27  #ifdef USE_PAM
28 diff -ur openssh-3.4p1.orig/auth2.c openssh-3.4p1/auth2.c
29 --- openssh-3.4p1.orig/auth2.c  Fri Jun 21 10:21:11 2002
30 +++ openssh-3.4p1/auth2.c       Sat Jun 29 21:03:37 2002
31 @@ -160,12 +160,14 @@
32                         PRIVSEP(start_pam(authctxt->pw->pw_name));
33  #endif
34                 } else {
35 -                       log("input_userauth_request: illegal user %s", user);
36 +                       debug2("input_userauth_request: illegal user %s", user);
37 +                       authctxt->pw = NULL;
38 +                       authctxt->valid = 0;
39  #ifdef USE_PAM
40                         PRIVSEP(start_pam("NOUSER"));
41  #endif
42                 }
43 -               setproctitle("%s%s", authctxt->pw ? user : "unknown",
44 +               setproctitle("%s%s", authctxt->pw ? user : "UNKNOWN USER",
45                     use_privsep ? " [net]" : "");
46                 authctxt->user = xstrdup(user);
47                 authctxt->service = xstrdup(service);
This page took 0.060087 seconds and 4 git commands to generate.