Search squid archive

[squid-users] Why the NCSA authentication of Squid 2.5 server doesn't work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



squid-users:
    
I'd like to configure authentication of NCSA for Squid-2.5 server on Redhat 5.2 platform. But I failed. I can't find what is wrong. 
I have done as the followings: 

1. Configure command:

$configure --prefix=/usr/local/squid-2.59 --with-openssl=/usr/local/openssl-0.9.7c --enable-ssl --enable-dlmalloc --enable-gnuregex --enable-kill-parent-hack --enable-time-hack --enable-dl-malloc --enable-async-io  --enable-storeio=ufs,null --enable-err-languages="Simplify_Chinese"   --enable-default-err-languages="Simplify_Chinese"   --enable-linux-netfilter  --enable-underscore --enable-auth="basic" --enable-basic-auth-helpers="NCSA"  
$make
#make install

2 Edit squid.conf:

...
auth_param basic program /usr/local/squid-2.59/libexec/ncsa_auth "/usr/local/squid-2.59/etc/passwd"
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
acl password proxy_auth REQUIRED
http_access allow password
# And finally deny all other access to this proxy
http_access deny all
...

#ls -l /usr/local/squid-2.59/libexec/ncsa_auth
-rwxr-xr-x   1 root     root        46205 Apr 27 10:07 /usr/local/squid-2.59/libexec/ncsa_auth

3 Debug output:

#./squid  -NCd1 
2005/04/27 11:05:31| Starting Squid Cache version 2.5.STABLE9 for i686-pc-linux-gnu...
2005/04/27 11:05:31| Process ID 18901
2005/04/27 11:05:31| With 256 file descriptors available
2005/04/27 11:05:31| Performing DNS Tests...
2005/04/27 11:05:31| Successful DNS name lookup tests...
2005/04/27 11:05:31| DNS Socket created at 0.0.0.0, port 1064, FD 3
2005/04/27 11:05:31| Adding nameserver 203.207.119.8 from /etc/resolv.conf
2005/04/27 11:05:31| helperOpenServers: Starting 5 'ncsa_auth' processes
2005/04/27 11:05:32| WARNING: Cannot run '/usr/local/squid-2.59/libexec/ncsa_auth' process.


Would you please give me some advice where  I set wrong ?

Many thanks.

Regards,

Yan Peng 
yanpeng@xxxxxxxxxxxxx
2005-04-27


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux