Re: [squid-users] help need to setup authentication in squid

From: Visolve Squid Development Team <squid@dont-contact.us>
Date: Sat, 27 Nov 2004 18:29:48 +0530

You are getting problem because of using -m option ( Force MD5 encryption of the password.).
NCSA authentication will return ERR to correct username and passwd.

Test:
-----

# htpasswd -mc /tmp/passwd test
New passwd: test
Retrype passwd: test

# libexec/ncsa_auth /tmp/passwd
test test
ERR
test ok
ERR

Solution:
---------

Use only -c option to create passwd database.

# htpasswd -c /tmp/passwd user1
<..snip>

>
> htpasswd -mc passwd user1
>

Check the changes on command line, before deploying in squid.conf file as,
# libexec/ncsa_auth <passwd file>
<username> <passwd>
OK
<wrong username> <passwd>
ERR

Best Wishes
Visolve Squid Development Team.
======================================================================================================
URL: http://squid.visolve.com/
mail : suppot@visolve.com
======================================================================================================

---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.797 / Virus Database: 541 - Release Date: 11/15/2004 
Received on Sat Nov 27 2004 - 05:59:57 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:02 MST