Search squid archive

RE: %EXT_USER value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the reply Amos.

Please see my previous mail for a complete explanation of my
requirements.
http://www.squid-cache.org/mail-archive/squid-users/200904/0295.html 

I'm using 
Squid Cache: Version 3.0.STABLE13

I'm looking for a way to pass a variable to an external acl which must
contain an already authenticated username.
I can not use %LOGIN because squid will assume that it's an auth helper
and prompt the user for re-authentication on ERR return and I want to
return a custom page on ERR return.

I just thought %EXT_USER will contain the username from and external
auth helper.
Conf example
=======
auth_param ntlm program /usr/bin/ntlm_auth
--helper-protocol=squid-2.5-ntlmssp
external_acl_type QuotaUser ttl=1 negative_ttl=0 children=3 %EXT_USER
/sqm/bin/quota_user.pl
acl password proxy_auth REQUIRED
acl quota_user external QuotaUser
http_access  deny  !password
http_access  deny quota_user
http_access allow all
deny_info ERR_CUSTOM_IN_QUOTA_USER quota_user








-----Original Message-----
From: Amos Jeffries [mailto:squid3@xxxxxxxxxxxxx] 
Sent: 15 April 2009 01:56 PM
To: Bartel Viljoen
Cc: squid-users@xxxxxxxxxxxxxxx
Subject: Re:  %EXT_USER value

Bartel Viljoen wrote:
> Dear Squid users.
> 
> Does anyone have a working squid conf example of the %EXT_USER that is

> available in squid 3. When I debug the value of %EXT_USER via a 
> external helper, the value is always "-", even though the log file is 
> showing the real username.

%EXT_USER is the value returned from an external helper. So most cases
it would not exist yet. How exectly are you testing it and what exact
release version of squid-3 is this?

> 
> Currently I'm using the following auth program auth_param ntlm program

> /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
> 
> A squid conf example would be of great help.

Then the value you are probably looking for is %LOGIN.

Amos
--
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
   Current Beta Squid 3.1.0.7

-----------------------------------------------------------------
Network & Computing Consultants
Tel: 0861-555444  |  Fax: 0861-555445
http://www.ncc.co.za

This e-mail is subjected to a disclaimer that can be viewed at:
http://www.ncc.co.za/legal/email-disclaimer.html

Email Managed by MailXServer  - http://www.mailxserver.com
-----------------------------------------------------------------



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux