Time for action – configuring NCSA authentication
To create and manage users, we can use the htpasswd
program, which is a part of httpd
(Apache Web Server).
Let's say we are going to keep the passwords in the /opt/squid/etc/passwd
file, then we can add some users as follows:
htpasswd /opt/squid/etc/passwd saini New password: Re-type new password:
We should enter the password when asked and a combination of a username and encrypted password will be written to the password file. To add more users, we can use the same command.
Now we need to configure the NCSA authentication helper to use this password file. We can do so using the following command:
auth_param basic program /opt/squid/libexec/basic_ncsa_auth /opt/squid/etc/passwd
What just happened? ...
Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.