hello.
i want to show the authenticated squid-user with greasyspoon like in
the script-example:
i++;
httpresponse = httpresponse.substring(0,a2)+"<h1>servas "+ user_id +
"</h1>"+user_group+" !: That's your "+i+" request<br>"
+httpresponse.substring(a2);
sharedcache.put("counter", i);
a1 = responseheader.indexOf("\r\n\r\n");
responseheader = responseheader.substring(0,a1) + "\r\nX-test: toto" +
responseheader.substring(a1)
so I want to show the user_id.
my problem is, that the user_id never is shown so I think the value is null.
but I don't know, why it is not shown, because authentication is
activated in squid.
I use:
greasyspoon version 0.5.4-b02
squid3-3.0.STABLE13-7.1
in squid.conf:
auth_param basic program /usr/bin/php5 authentifizierung.php
auth_param basic credentialsttl 4 hour
auth_param basic realm Username and password
auth_param basic children 20
acl AuthenticatedUsers proxy_auth REQUIRED
acl .....
so if I want to use the proxy, I have to sign in with username and password.
but the username (the parameter user_id)is not shown in the example above.
can anybody help what I am doing wrong?
thx
Received on Sun Feb 28 2010 - 10:59:04 MST
This archive was generated by hypermail 2.2.0 : Sun Feb 28 2010 - 12:00:06 MST