]> git.pld-linux.org Git - packages/lighttpd.git/blob - mod_auth-ip-info.patch
30e9966a72d1119a11f48946fcaefd4dfb43b398
[packages/lighttpd.git] / mod_auth-ip-info.patch
1 --- lighttpd-1.4.26/src/http_auth.c.bak 2010-05-24 21:54:12.000000000 +0200
2 +++ lighttpd-1.4.26/src/http_auth.c     2010-05-24 22:11:52.000000000 +0200
3 @@ -869,7 +869,7 @@
4                 if (AUTH_BACKEND_UNSET == p->conf.auth_backend) {
5                         log_error_write(srv, __FILE__, __LINE__, "s", "auth.backend is not set");
6                 } else {
7 -                       log_error_write(srv, __FILE__, __LINE__, "s", "get_password failed");
8 +                       log_error_write(srv, __FILE__, __LINE__, "ss", "get_password failed, IP:", inet_ntop_cache_get_ip(srv, &(con->dst_addr)));
9                 }
10  
11                 return 0;
12 --- lighttpd-1.4.26/src/http_auth.c~    2010-05-24 23:39:16.000000000 +0300
13 +++ lighttpd-1.4.26/src/http_auth.c     2010-05-24 23:39:25.761721926 +0300
14 @@ -877,7 +877,7 @@
15  
16         /* password doesn't match */
17         if (http_auth_basic_password_compare(srv, p, req, username, realm->value, password, pw)) {
18 -               log_error_write(srv, __FILE__, __LINE__, "sbbss", "password doesn't match for ", con->uri.path, username, ", IP:", inet_ntop_cache_get_ip(srv, &(con->dst_addr)));
19 +               log_error_write(srv, __FILE__, __LINE__, "sbsBss", "password doesn't match for", con->uri.path, "username:", username, ", IP:", inet_ntop_cache_get_ip(srv, &(con->dst_addr)));
20  
21                 buffer_free(username);
22                 buffer_free(password);
This page took 0.024149 seconds and 3 git commands to generate.