Commit 0cb6ee67 authored by Sander Striker's avatar Sander Striker
Browse files

Add an error msg when encountering a spoofed identity. If this would

have been here in the first place.  Makes issues like these be found
easier in the future.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@100937 13f79535-47bb-0310-9956-ffa450edef68
parent d4ead14a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -880,6 +880,8 @@ int ssl_hook_UserCheck(request_rec *r)
            password = auth_line;

            if ((username[0] == '/') && strEQ(password, "password")) {
                ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
                 "Encountered FakeBasicAuth spoof: %s", username);
                return HTTP_FORBIDDEN;
            }
        }