[sr-dev] where is s proxy_challenge function?
Juha Heinanen
jh at tutpro.com
Thu Jul 1 20:18:41 CEST 2010
Jan Janak writes:
> It has been obsoleted because all the function did was to send a reply
> with digest challenge included. We achieve the same in the
> configuration file with a combination of append_to_reply and sl_reply:
>
> if (!proxy_authenticate("$fd.digest_realm", "credentials")) {
> if ($? == -2) {
> sl_reply("500", "Internal Server Error");
> } else if ($? == -3) {
> sl_reply("400", "Bad Request");
> } else {
> if (defined $digest_challenge && $digest_challenge != "") {
> append_to_reply("%$digest_challenge");
> }
> sl_reply("407", "Proxy Authentication Required");
> }
> drop;
> }
jan,
thanks for the explanation. what value should i give to
$digest_challenge variable so that proper Proxy-Authenticate header is
included in the reply?
-- juha
More information about the sr-dev
mailing list