If you can get the username, then you can create a redirector to append the
name to the URL, as that rewrites the url to whatever you want it to be.

We've been trying to setup an ldap authenticated reverse proxy, and have
successfully sent the username down to the origin (real) webserver in the
http_proxy_authorization header. It's base64 encoded so we use a script to
un-encode it, on the webserver, and get the username to the webserver that
way. 

cache_peer 10.1.1.1  parent 80 0 originserver no-query no-digest proxy-only
login=*:password cache_peer 10.1.1.45 parent 80 0 originserver no-query
no-digest proxy-only login=*:password

The last part of the above line is the "login" information.

Chris Perreault

-----Original Message-----
From: Thomas Borger [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 3:24 AM
To: [EMAIL PROTECTED]
Subject: [squid-users] apped user id on URL?


Hi,

is it possible that squid append the user id from client/user which requests
the proxy and is authorizesed on the URL which forwards the squid to the
real Webserver?!

e.g.

1. client requests the proxy with UID=abc
2. proxy perform the autorization, result=valid user
3. proxy forward the request to Webserver: http://www.webserver.com/abc
(where abc = UID)

thanks in advance
Thomas

Reply via email to