This is a discussion on Re: [squid-users] Squid authentication - squid ; On Wed, 4 Feb 2004, Mohammad Meskarian wrote: > I have below line in squid.conf > > auth_param basic program /usr/local/squid/libexec/ncsa_auth > /temp/copyOfShadow ncsa_auth as shipped with Squid-2.5 and ealier only understands NCSA style password files username:crypt_hashed_password It does not ...
On Wed, 4 Feb 2004, Mohammad Meskarian wrote:
> I have below line in squid.conf
>
> auth_param basic program /usr/local/squid/libexec/ncsa_auth
> /temp/copyOfShadow
ncsa_auth as shipped with Squid-2.5 and ealier only understands NCSA style
password files
username:crypt_hashed_password
It does not use the same format as /etc/shadow.
NCSA style password files are created with the htpasswd command. Depending
on version you may need to use a option to tell htpasswd to use the crypt
hash (newer versions default to Apache style MD5).
If you really really want to authenticate against /etc/shadow then see the
PAM helper for Squid. Don't forget to read the manuals.
Regards
Henrik