summaryrefslogtreecommitdiff
path: root/src/http_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http_auth.c')
-rw-r--r--src/http_auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http_auth.c b/src/http_auth.c
index 647ab12f..52f44ef1 100644
--- a/src/http_auth.c
+++ b/src/http_auth.c
@@ -912,14 +912,14 @@ int http_auth_basic_check(server *srv, connection *con, mod_auth_plugin_data *p,
buffer_free(username);
buffer_free(password);
- log_error_write(srv, __FILE__, __LINE__, "s", "get_password failed");
+ log_error_write(srv, __FILE__, __LINE__, "ss", "get_password failed, IP:", inet_ntop_cache_get_ip(srv, &(con->dst_addr)));
return 0;
}
/* password doesn't match */
if (http_auth_basic_password_compare(srv, p, req, username, realm->value, password, pw)) {
- log_error_write(srv, __FILE__, __LINE__, "sbb", "password doesn't match for", con->uri.path, username);
+ 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)));
buffer_free(username);
buffer_free(password);
@@ -1186,8 +1186,8 @@ int http_auth_digest_check(server *srv, connection *con, mod_auth_plugin_data *p
"digest: digest mismatch", a2, respons);
}
- log_error_write(srv, __FILE__, __LINE__, "sss",
- "digest: auth failed for", username, "wrong password");
+ log_error_write(srv, __FILE__, __LINE__, "ssss",
+ "digest: auth failed for ", username, ": wrong password, IP:", inet_ntop_cache_get_ip(srv, &(con->dst_addr)));
buffer_free(b);
return 0;