Re: [squid-users] How to get LOGIN and SRC on external script.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 16 May 2005 23:56:01 +0200 (CEST)

On Fri, 13 May 2005, Truong Tan Son wrote:

>
> Dear Sir,
>
> I use "external_acl_type" TAB to check the match of username and IP client
> but don't know how to get %LOGIN & %SRC on my script.
>
> external_acl_type checkip children=20 %LOGIN %SRC
> /usr/local/squid/bin/script.sh
>
> Please could help me howto get "%LOGIN" and "%SRC" on script.sh

It is sent on the request line sent to your script, one line per request.

The format is documented under the external_acl_type directive in
squid.conf.

#!/bin/sh
while read login source; do
     echo OK
done

Regards
Henrik
Received on Mon May 16 2005 - 15:56:03 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:03 MDT