[squid-users] Squid-3.0.pre..reverse proxy..passing ldap username to back end w eb servers

From: Chris Perreault <[email protected]>
Date: Wed, 23 Jun 2004 07:30:03 -0400

I wondering if squid has a built in feature that passes the username down to
back end webservers. Reference material seems to state there is an
authentication header, but I don't see this information displayed when I run
a script that shows the header information on the webserver. I'm displaying
this information using an asp script that shows all the server variables.
We'd like to get the ldap authenticated username so we can match it to a
profile database on the back-end network.

Thanks in advance,
Chris

Html table output on headers.asp:

Server Variable Name Server Variable Value
 ALL_HTTP HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */* HTTP_ACCEPT_LANGUAGE:en-us
HTTP_CONNECTION:keep-alive HTTP_HOST:10.8.88.3 HTTP_USER_AGENT:Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)
HTTP_COOKIE:ASPSESSIONIDAACBDSRQ=PJJAGNGDBLFCLNGPIBFHCAOE HTTP_VIA:1.1
linux.local (squid/3.0-PRE3-20040608) HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_X_FORWARDED_FOR:10.8.88.17 HTTP_CACHE_CONTROL:max-age=259200
 ALL_RAW Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */* Accept-Language: en-us Connection:
keep-alive Host: 10.87.88.3 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.0) Cookie: ASPSESSIONIDAACBDSRQ=PJJAGNGDBLFCLNGPIBFHCAOE Via:
1.1 linux.local (squid/3.0-PRE3-20040608) Accept-Encoding: gzip, deflate
X-Forwarded-For: 10.8.88.17 Cache-Control: max-age=259200
 APPL_MD_PATH /LM/W3SVC/1/ROOT
 APPL_PHYSICAL_PATH e:\inetpub\wwwroot\
 AUTH_PASSWORD
 AUTH_TYPE
 AUTH_USER
 CERT_COOKIE
 CERT_FLAGS
 CERT_ISSUER
 CERT_KEYSIZE
 CERT_SECRETKEYSIZE
 CERT_SERIALNUMBER
 CERT_SERVER_ISSUER
 CERT_SERVER_SUBJECT
 CERT_SUBJECT
 CONTENT_LENGTH 0
 CONTENT_TYPE
 GATEWAY_INTERFACE CGI/1.1
 HTTPS off
 HTTPS_KEYSIZE
 HTTPS_SECRETKEYSIZE
 HTTPS_SERVER_ISSUER
 HTTPS_SERVER_SUBJECT
 INSTANCE_ID 1
 INSTANCE_META_PATH /LM/W3SVC/1
 LOCAL_ADDR 10.8.93.222
 LOGON_USER
 PATH_INFO /intranet/headers.asp
 PATH_TRANSLATED e:\inetpub\wwwroot\intranet\headers.asp
 QUERY_STRING
 REMOTE_ADDR 10.8.88.3
 REMOTE_HOST 10.8.88.3
 REMOTE_USER
 REQUEST_METHOD GET
 SCRIPT_NAME /intranet/headers.asp
 SERVER_NAME 10.87.88.3
 SERVER_PORT 80
 SERVER_PORT_SECURE 0
 SERVER_PROTOCOL HTTP/1.0
 SERVER_SOFTWARE Microsoft-IIS/5.0
 URL /intranet/headers.asp
 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
 HTTP_ACCEPT_LANGUAGE en-us
 HTTP_CONNECTION keep-alive
 HTTP_HOST 10.87.88.3
 HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
 HTTP_COOKIE ASPSESSIONIDAACBDSRQ=PJJAGNGDBLFCLNGPIBFHCAOE
 HTTP_VIA 1.1 linux.local (squid/3.0-PRE3-20040608)
 HTTP_ACCEPT_ENCODING gzip, deflate
 HTTP_X_FORWARDED_FOR 10.8.88.17
 HTTP_CACHE_CONTROL max-age=259200
Received on Wed Jun 23 2004 - 05:30:13 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:03 MDT