Re: [squid-users] Proxy authentication based on requested host

From: Mikko Kettunen <dawni@dont-contact.us>
Date: Tue, 08 Jan 2008 17:53:47 +0200

Mikko Kettunen wrote:
> I'm thinking of something like this:
>
> auth_param basic program /usr/local/bin/my_authenticator %DST_HOST
> %OTHER_PARAM
>
> I didn't find much information on this matter. Any help is appreciated.

After some thoughts I think it would be better if I could send the
dst_host (ex. somehost.somewhere) and url_path (ex. /auth_2) to the
authenticator after the username and password:

"username password" -> "username password dst_host url_path"

Authenticator replies with OK / ERR as usual.

Also if I could dynamically alter the realm so that it would be the
requested host (somehost.somewhere) would be nice too.

Is there any way to accomplish these? I'm not good in c-programming so
it's a bit difficult to me to make needed changes to the code but with
some hints where to look at might help :-)

Thanks.

-Mikko
Received on Tue Jan 08 2008 - 08:53:59 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:04 MST