Hello!
I am trying to set up user/password authentification on squid on my e-smith 4.1 server.
Reading of
http://squid-docs.sourceforge.net/latest/html/x1560.htm explains:
"Squid uses modules to do user authentication, rather than including code to do it directly. The default Squid source does, however, include two standard modules; The first authenticates users from a file, the other uses SMB (Windows NT) authentication. These modules are in the auth_modules directory in the source directory. These modules are not compiled when you compile Squid itself, and you will need to chooes an authentication module and run make in the appropriate directory. If the compile goes well, a make install will place the program file in the /usr/local/squid/bin/ directory and any config files in the /usr/local/squid/etc/ directory."
I want to use the NCSA authentification module but can't find it on my e-smith box. Is it there somewhere but i can't find it? If not, is there an rpm available?
Also,
"To use the NCSA authentication module, you will need to add the following line to your squid.conf:
authenticate_program /usr/local/squid/bin/ncsa_auth /usr/local/squid/etc/passwd
You will also need to create the appropriate password file (/usr/local/squid/etc/passwd in the example above). This file consists of a username and password pair, one per line, where the username and password are seperated by a colon (

, just as they are in your /etc/passwd file (assuming you are running Unix). The password is encrypted with the same function as the passwords in /etc/passwd (or /etc/shadow on newer systems) are. Here is an example password line:
oskar:lKdpxbNzhlo.w
Since the encrypted passwords are the same, you could simply copy the system password file periodically, since the ncsa_auth module understands the /etc/passwd or /etc/shadow file format. If your users do not already have passwords in unix crypt format somewhere, you will have to use the htpasswd program to generate the appropriate user and password pairs. This program is included in the /usr/local/squid/bin/ directory."
Ideally I would like to modify the scripts that are run from the admin web interface when a user password is reset and the e-smith-password web page so that when the e-smith box's passwords are changed the /etc/passwd file is automatically copied to squid/etc/passwd file. (i can't find the squid/etc directory either?).
Has anybody already achieved this? Or am I on the wrong track? Any pointers would be gratefully received.
Many Thanks.