authenticate_program /path/to/ncsa_auth /path/to/htpasswd_file
acl login proxy_auth REQUIRED
http_access deny !login
or
http_access allow login
dependin on your taste and access rule set
Step by step:
1. Create a password file with the htpasswd command
2. Verify that ncsa_auth understands the fileformat used
run "/path/to/ncsa_auth /path/to/htpasswd_file"
type "username<space>password<enter>". If OK is returned then you are
set.
3. Configure Squid, and test it from a browser.
And note that proxy authentication cannot be used if you are
intercepting port 80 traffix. Proxy authentication can only be used when
the browser is CONFIGURED to use a proxy.
Regards
Henrik Nordström
Squid Hacker
glynn@itextron.com wrote:
>
> Hello everyone, sorry for my annoying email, actually this is mu fifth post here in the mailing list about my problem, I read all the manuals, I also search the net but all of them doesnt work in my squid box. I have a working squid proxy but Id like to implement an authentication to it so that I could minimize the user of the internet. How can i make ncsa_auth work? it always pop up for the passwd and it seems that it wont accept my username and passwd. I create the passwd file in htpasswd " htpasswd -cd /pathto/passwd ", i restarted the squid also the httpd process maybe can help, but it wont. I customized the squid.conf only the authentication program, realm acl list, and it wont work, any can help me pls. maybe someone can send me a working conf file and also the step by step procedure how to make it work, thanks in advance.
>
> Best Regards,
> Glynn S. Condez
> Technical Specialist
> Technical Operations Division
> Textron Corporation
>
> +632 7182222/7267701
>
> email: info@itextron.com
> Website: http://www.itextron.com
>
> ------------------------------------------------------------------------------------------------------------
> The information contained in this Internet message is confidential and
> intended only for the use of the individual or entity identified. If
> the reader of this message is not the intended recipient, any
> dissemination, distribution or copying of the information contained in
> this Internet message is strictly prohibited. If you received this
> message in error, please notify the sender immediately.
Received on Sun Oct 21 2001 - 20:16:26 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:01 MST