LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   squid ncsa authentication doesn't authenticates (https://www.linuxquestions.org/questions/linux-networking-3/squid-ncsa-authentication-doesnt-authenticates-501096/)

Sleen 11-13-2006 03:23 AM

squid ncsa authentication doesn't authenticates
 
Hi all,
I have configured squid and its up and running.Problem is each time users try to put in their username&password pair for authentication,they are denied access to the cache.I configured squid.conf with the following params

auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/etc/passwd
acl auth proxy_auth REQUIRED
http_access allow auth

and I created and used htpasswd to put in users in /usr/etc subdirectory which i created with owner root and group squid.
I also get the following reports from access.log
985706399.967 2 192.168.35.11 TCP_DENIED/407 1362 Get
and this
WARNING: authenticator #1 (FD 6) exited
WARNING: authenticator #2 (FD 7) exited

Does anyone know what the problem may be?

gilead 11-13-2006 03:35 AM

What command did you use to create the passwd file? Its contents should be username:passwordhash. For example:
Code:

cat passwd
steve:921.D84us1CGQ


Sleen 11-13-2006 03:48 AM

I used 2htpaswd.
here is the the entry in my passwd file
#cat passwd
tomslin:WAtNVI57lXhfk

any ideas?

gilead 11-13-2006 04:22 PM

Sorry for the basic question, but does /usr/local/squid/libexec/ncsa_auth exist and is it executable?

Sleen 11-14-2006 04:13 AM

It ok.
Yeah it exists and i guess its executable coz i used rpm -ql squid | grep ncsa to chech if its there before including it in squid.conf.


All times are GMT -5. The time now is 05:29 AM.