Re: Squid authentication to upstream ISA serverwithNegotiate/Kerberos

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Wed, 04 Jul 2007 00:50:59 +0200

On tis, 2007-07-03 at 21:19 +0100, Markus Moeller wrote:
> I am now looking at http.c ( squid 2.6STABLE13) and I think I can add some
> code around here:
>
> } else {
> httpHeaderPutStrf(hdr_out, HDR_PROXY_AUTHORIZATION, "Basic %s",
> base64_encode(orig_request->peer_login));
> }
>
> The only value I need at that point is the hostname of the cache_peer squid
> is connecting too, but I can't find which variable, structure contains the
> cache_peer name. Could someone point me to it ?

It's in request->host I think.

On requests forwarded to peers request is a bit odd, pointing to the
peer with the full URL as urlpath, and orig_requests being the actual
request.. (always is).

Regards
Henrik

Received on Tue Jul 03 2007 - 16:51:11 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:06 MDT