auth_param basic program /usr/local/squid/bin/ncsa_auth
/usr/local/squid/etc/squidpasswd

password is stored inside squidpasswd, a file that is created using apache
htpasswd program

add the line somewhere below the default line "auth_param basic
credentialsttl 2 hours" will do


see http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#ss19.6

----- Original Message ----- 
From: "Varun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, May 15, 2004 11:06 AM
Subject: [squid-users] NCSA auth


> hello,
>         I want to use NCSA based auth with IP of machines.
> I am using now only IP for acl as follows :
>
> acl abc src 192.168.0.1
> http_access allow abc
>
> I want to add say username and password also for auth
> using NCSA.
>
> I believe I need to add the following line in squid.conf
>
> authenticate_program /usr/local/squid/bin/ncsa_auth
> /usr/local/squid/etc/passwd
>
> I am not sure exactly where to add the above line.
>
> Futher I need to create the file passwd in
>
> /usr/local/squid/etc/
>
> Howto add username and password to the file passwd?
>
> What should I add to my present acl in squid.conf to add
> NCSA auth with username and password ?
>
>
> Thanks in advance
>
> Varun
>

Reply via email to