Re: [squid-users] how to access username in an url_rewrite_program

From: Amos Jeffries <squid3@dont-contact.us>
Date: Sat, 01 Dec 2007 13:00:28 +1300

robert rottermann wrote:
> Hi there,
>
> we are running an application server behind squid (zope/plone).
> Squid calls an url_rewrite_program written in python to call that server.
> I would like to send the name of the authenticated user to the
> application server.
>
> Now my question: How can I do that?
> For me the best thing would be to be able to add it to the http headers,
> so that the server down the chain can read it.
>
> how could I do that?
> Is ther a sample somewher?

Sounds like you are another site running a 2.5 configuration.

You will need Squid 2.6, setup with a cache_peer and ACL routing instead
of url_rewriter.
The cache_peer take option login=PASS to trust the source peer with
credentials.

Amos
Received on Fri Nov 30 2007 - 17:00:43 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:03 MST