Thanks Henrik 
 
 now my authentication pass properly when the squid working as proxy.
 I tried to use authentication when proxy working as reverse proxy and
in acc mode. 
 Again squid advertise for authentication and shows the uname and
password menu 
 but it doesn't accept the username and password. 
 
 Username and passwords working properly when we use the squid as proxy
but not in reverse mode. 
 
 Did I miss any thing during compile or in configurations. 
 My squid version is 2.5Stable4. 

 BR 
 Mo
 
 BR 
 Mo 
-----Original Message-----
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 04, 2004 9:56 AM
To: Mohammad Meskarian
Cc: [EMAIL PROTECTED]
Subject: Re: [squid-users] Squid authentication


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


Reply via email to