[squid-users] Antwort: Re: [squid-users] http_reply_access & LDAP external acl

From: <Horst.Mundt@dont-contact.us>
Date: Thu, 22 Apr 2004 14:51:37 +0200

Thanks Henrik,

this seems to work. What exactly do you mean with "quite well (but not
100%)"?
Would you consider this workaround fit for use in a production environment
(about 1000 users)?

Regards

Horst

                                                                                                                   
                    Henrik
                    Nordstrom An: Horst.Mundt@arxes.de
                    <hno@squid-cac Kopie: squid-users@squid-cache.org
                    he.org> Thema: Re: [squid-users] http_reply_access & LDAP external acl
                                                                                                                   
                    21.04.2004
                    18:09
                                                                                                                   
                                                                                                                   

On Wed, 21 Apr 2004 Horst.Mundt@arxes.de wrote:

> It seems like the problem only occurs in conjunction with the
> http_reply_access.
>
> Any ideas? (My current workaround is a script that reads the admins group
> from the LDAP-directory and writes the members into a file. Told squid
to
> read the "admins" acl from the file instead of the LDAP-directory. That
> basically works but is not really elegant )

http_reply_access is somewhat limited in Squid-2.5 in that it cannot wait
for any form of external lookup to complete (external, dns etc).

You can work around this quite well (but not 100%) by making sure the same
acls is evaluated in http_access, allowing Squid to cache the result
before processing your http_reply_access rules. A simple method to have
acls evaluated in http_access without affecting the http_access outcome is
to use combine them with a dummy acl that will never match anything

acl nothing src 0.0.0.0/32

http_access deny acl_that_needs_to_be_evaluated nothing

somewhere before where access is allowed..

Regards
Henrik

Disclaimer

Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen
enthalten. Wenn Sie nicht der beabsichtigte Empfänger sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender tele-
fonisch oder per E-Mail und löschen Sie diese E-Mail aus Ihrem System. Das
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet. Wir haften nicht für die Unversehrtheit von E-Mails, nachdem sie
unseren Einflussbereich verlassen haben.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error) please
notify the sender immediately by call or e-mail and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden. We are not responsible for the integrity of
e-mails after they have left our sphere of control.
Received on Thu Apr 22 2004 - 06:51:42 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT