]> git.pld-linux.org Git - packages/proftpd.git/blob - proftpd-betterlog.patch
- patches from devel
[packages/proftpd.git] / proftpd-betterlog.patch
1 --- proftpd-1.2.0pre1/modules/mod_auth.c.betterlog      Thu Feb 11 14:03:09 1999
2 +++ proftpd-1.2.0pre1/modules/mod_auth.c        Thu Feb 11 14:03:34 1999
3 @@ -514,7 +514,11 @@
4    c = _auth_resolve_user(p,&user,&ourname,&anonname);
5  
6    if(!user) {
7 -    log_pri(LOG_NOTICE,"failed login, '%s' is not a UserAlias.",origuser);
8 +      log_auth(LOG_NOTICE,"USER %s: user is not a UserAlias from %s [%s] to %s:%i",
9 +               user,session.c->remote_name,
10 +              inet_ascii(p,session.c->remote_ipaddr),
11 +              inet_ascii(p,session.c->local_ipaddr),
12 +              session.c->local_port);
13      goto auth_failure;
14    }
15  
16 @@ -522,7 +526,11 @@
17    aclp = login_check_limits(main_server->conf,FALSE,TRUE,&i);
18  
19    if((pw = auth_getpwnam(p,user)) == NULL) {
20 -    log_pri(LOG_NOTICE,"failed login, can't find user '%s'",user);
21 +      log_auth(LOG_NOTICE,"USER %s: no such user found from %s [%s] to %s:%i",
22 +               user,session.c->remote_name,
23 +              inet_ascii(p,session.c->remote_ipaddr),
24 +              inet_ascii(p,session.c->local_ipaddr),
25 +              session.c->local_port);
26      goto auth_failure;
27    }
28  
This page took 0.031457 seconds and 4 git commands to generate.