"Sebastian Hees" <shees DeleteThis @gmx.de> schreef in bericht
news:c9fb2k$q5l$1@online.de...
> I found following 2-year-old posting from someone who has the same
> problem like me today:
> "whenever i run PHP scripts which require the ? tags on the end of a URL
> (i.e. index.php?page=x ) i get a 400 error saying it was a bad request.
> This error only happens when under my password protected pages (digest
> authentication). Is there anyway I can continue to use the digest auth.
> and have those links still work (in that same format) i.e. change a few
> settings or something?"
> The only reply at that time was
> "Digest authentification is experimental. I use basic authentification
> and I have no problem."
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html#using" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html#using</a>
" Digest authentication provides a more secure password system than Basic
authentication, but only works with supporting browsers. As of November
2002, the major browsers that support digest authentication are Opera, MS
Internet Explorer (fails when used with a query string[1]), Amaya, Mozilla
and Netscape since version 7. Since digest authentication is not as widely
implemented as basic authentication, you should use it only in controlled
environments. "
[1] That's the name for what comes after the question mark ...
Did some googling on that ...
<a style='text-decoration: underline;' href="http://www.rassoc.com/gregr/weblog/archive.aspx?post=448" target="_blank">http://www.rassoc.com/gregr/weblog/archive.aspx?post=448</a>
" - When using Opera, the cnonce value is a base-64 encoded value which may
contain the '=' character. The original parsing code did not correctly
handle this situation.
- Mozilla uses the entire URI (including the query string) for the uri
field in the authorization header, whereas Internet Explorer does not. The
original parsing code would not correctly handle the '=' characters in the
header. "
<a style='text-decoration: underline;' href="http://www.apacheweek.com/issues/02-12-20" target="_blank">http://www.apacheweek.com/issues/02-12-20</a>
" An article published by eWeek earlier this year covered an incompatibility
between the implementations of the digest authentication specification (RFC
2617) in Microsoft Internet Explorer and Apache, although no specific
details were revealed in the article. More light was shed on the issue this
week as it was discovered that when requests sent by Internet Explorer to a
location protected by mod_auth_digest where the URL includes a query string
(such as /cgi-bin/script.pl?id=foobar), authorisation will always fail. This
appears to be because Internet Explorer sends an incorrect WWW-Authorization
header for such URLs; no workaround is known, though several techniques were
suggested to avoid using query strings in protected locations; using POST
for forms, or using PATH_INFO to avoid explicit query strings. "
<a style='text-decoration: underline;' href="http://www.apacheweek.com/issues/03-06-20" target="_blank">http://www.apacheweek.com/issues/03-06-20</a>
" A patch was submitted last week which may be of interest to server
administrators looking to deploy Digest-based authentication. As covered
last year, there is a bug in the Digest authentication code in Microsoft
Internet Explorer, causing requests which use a query string to fail if
under Digest protection. Paul Querna, developer of the mod_authn_dbi module,
has developed a BrowserMatch-based workaround for this issue; relaxing the
check to allow MSIE to authenticate correctly without compromising security
for other browsers. "
<a style='text-decoration: underline;' href="http://www.apache-httpd.com/msg/4858.html" target="_blank">http://www.apache-httpd.com/msg/4858.html</a>
"... There is a workaround that lets you ignore this if the
AuthDigestEnableQueryStringHack environment variable is defined (for example
using BrowserMatch). But I believe it is only in the development branch
(2.1) and not in the released branch. The patch is here:
<a style='text-decoration: underline;' href="http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/aaa/mod_auth_digest.c?r1=1.86&r2=1.87" target="_blank">http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/aaa/mod_auth_diges...?r1=1.8</a> "
For those brave and daring, just c&p this patch to your current
source -either 1.3x or 2.0.4x- and recompile, fingers crossed!
HansH<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: mod_auth_digest and php: HTTP Error 400