mod_auth_digest: Be more specific when the realm mismatches because the
realm has not been specified.
Submitted by: minfrin
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1524172 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.7
+ *) mod_auth_digest: Be more specific when the realm mismatches because the
+ realm has not been specified. [Graham Leggett]
+
*) mod_proxy: Add a note in the balancer manager stating whether changes
will or will not be persisted. [Daniel Ruggeri]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_auth_digest: Be more specific when the realm mismatches because the
- realm has not been specified.
- trunk: http://svn.apache.org/viewvc?view=revision&revision=1523239
- 2.4.x patch: trunk patch works, modulo CHANGES and next-number
- +1: minfrin, druggeri, chrisd
-
* mod_cache: Correct LOGNO which has not been updated when r1481396 was backported
trunk: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?r1=1481396&r2=1481395&pathrev=1481396
2.4.x: http://people.apache.org/~jailletc36/1481396.patch
return HTTP_UNAUTHORIZED;
}
- if (strcmp(resp->realm, conf->realm)) {
+ if (!conf->realm) {
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(02533)
+ "realm mismatch - got `%s' but no realm specified",
+ resp->realm);
+ note_digest_auth_failure(r, conf, resp, 0);
+ return HTTP_UNAUTHORIZED;
+ }
+
+ if (!resp->realm || strcmp(resp->realm, conf->realm)) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01788)
"realm mismatch - got `%s' but expected `%s'",
resp->realm, conf->realm);