writes:
> >|>
> >|> >Does anybody knows if it's possible to configure the Apache server
> >|> >(version 1.2 or, maybe 1.3) as proxy server, so that the proxy server will
> >|> >serve requests for documents requiring user authentication (something like
> >|> >).
> >|>
> >|> Documents requiring authentication are not accessed in the form
> >|> you specify. It is _NOT_ a standard form, and is not a good idea for
> >|> numerous reasons. The proper way is for a client to send the
> >|> appropriate Authorization: header. Most clients require that a
> >|> user enter it in a dialog box, but some clients do accept it in
> >|> the form you cite, however they _must_ convert it into a proper
> >|> request before sending it otherwise they are sending an invalid
> >|> request.
> >I agree that this form should not be sent to a server but it should be
> >acceptable to any browser as it conforms to RFC1738.
> Erm... no it doesn't. RFC-1738 says:
> An HTTP URL takes the form:
> http://<host>:<port>/<path>?<searchpart>
> where <host> and <port> are as described in Section 3.1. If :<port>
> is omitted, the port defaults to 80. No user name or password is
> allowed. <path> is an HTTP selector, and <searchpart> is a query
> string. The <path> is optional, as is the <searchpart> and its
> preceding "?". If neither <path> nor <searchpart> is present, the "/"
> may also be omitted.
> The general form of a URL includes somewhere for a password, however
> it is expressly not permitted in a HTTP URL because it makes little
> sense.
> Not that RFC-1738 is right about a lot of things, and it should not be
> used as a canonical reference. Unfortunately, better onces can be
> difficult to find (and aren't standard) although they do exist.
The IETF draft URI syntax (*), to which of course, it would be inappropriate
to refer other than as a work-in-progress, replaces user:password by
"userinfo", and deliberately avoids any suggestion that it include cleartext
passwords:
URL schemes that involve the direct use of an IP-based protocol to a
specified server on the Internet use a common syntax for the <site>
component of the URI's scheme-specific data:
where <userinfo> may consist of a user name and, optionally,
scheme-specific information about how to gain authorization to access
The user information, if present, is followed by a commercial
userinfo = *( unreserved | escaped |
";" | ":" | "&" | "=" | "+" )
Some URL schemes use the format "user:password" in the <userinfo>
field. This practice is NOT RECOMMENDED, because the passing of
authentication information in clear text (such as URIs) has proven to
be a security risk in almost every case where it has been used.
(*) <URL: ftp://ftp.ietf.org/internet-drafts/draft-fielding-uri-syntax-01.txt>
Of course there is little difference between passing a cleartext password
from client to server as the URI of an HTTP request, and passing it from
server to client in the body of a response. But come to that the way it
is passed when using Basic Authentication is little better. :[
What do we want? MD5 Digests! When do we want it? Now!
--
Chris Gray