On Friday 25 April 2003 03.11, Bruce Deng wrote:
> Hi! squid-users.
>
> I use ip_user to control user ip now, but I want use one program
> to verify both username & user ip.... How can i get user ip in
> authentication program when this user login?
You can't. Authentication is by design separate from IP addresses.
What you can is to add restrictions to the logged in user after
authentication have completed. The ip_user external acl helper is an
example of this but far from the only kind of restriction you can
add.
To accomplish the above goal you need two programs accessign the same
database.
1. authentication, checking the login+password
2. authorization, verifying if the login is accepted by the other
criterias
Regards
Henrik
-- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org If you need commercial Squid support or cost effective Squid or firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, [email protected]Received on Fri Apr 25 2003 - 01:42:14 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:29 MST