]> git.pld-linux.org Git - packages/lighttpd.git/blob - mod_auth-ip-info.patch
- add tests bcond
[packages/lighttpd.git] / mod_auth-ip-info.patch
1 --- lighttpd-1.4.26/src/http_auth.c~    2010-02-02 01:28:20.000000000 +0200
2 +++ lighttpd-1.4.26/src/http_auth.c     2010-05-24 23:51:13.781442000 +0300
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 @@ -877,7 +877,7 @@
13  
14         /* password doesn't match */
15         if (http_auth_basic_password_compare(srv, p, req, username, realm->value, password, pw)) {
16 -               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)));
17 +               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)));
18  
19                 buffer_free(username);
20                 buffer_free(password);
This page took 0.172239 seconds and 3 git commands to generate.