Operating System - Linux
1829453 Members
725 Online
109992 Solutions
New Discussion

Re: squid says: unrecognized: 'authenticate_program /usr/lib/sqid/ncsa_auth /tmp/pass'

 
Maaz
Valued Contributor

squid says: unrecognized: 'authenticate_program /usr/lib/sqid/ncsa_auth /tmp/pass'

Hello Dear Experts,

squid version: squid 2.5STABLE

I did the following
#touch /tmp/pass; chown squid.squid /tmp/pass
#htpasswd /tmp/pass razi

in squid.conf all the default configuration, and
#vi /etc/squid/squid.conf
authenticate_program /usr/lib/sqid/ncsa_auth /tmp/pass
acl up auth_proxy REQUIRED
http_access allow up

#squid -NCd1
.
.
2005/01/28 11:50:15| parseConfigFile: line 1195 unrecognized: 'authenticate_program /usr/lib/sqid/ncsa_auth /tmp/pass'
2005/01/28 11:50:15| aclParseAclLine: IGNORING: Proxy Auth ACL 'acl up proxy_auth REQUIRED' because no authentication schemes are fully configured.
2005/01/28 11:50:15| aclParseAclLine: IGNORING invalid ACL: acl up proxy_auth REQUIRED
2005/01/28 11:50:15| squid.conf line 1738: http_access allow up
2005/01/28 11:50:15| aclParseAccessLine: ACL name 'up' not found.
2005/01/28 11:50:15| squid.conf line 1738: http_access allow up
.
.
2005/01/28 11:50:15| Ready to serve requests.

#ls -l /tmp/pass
-rw-r--r-- 1 squid squid 19 Jan 28 11:36 /tmp/pass
#ls -l /usr/lib/squid/ncsa_auth
-rwxr-xr-x 1 root root 13280 Sep 18 2003 /usr/lib/squid/ncsa_auth

so whats wrong
Plz Help
Regards
Maaz
1 REPLY 1
Maaz
Valued Contributor

Re: squid says: unrecognized: 'authenticate_program /usr/lib/sqid/ncsa_auth /tmp/pass'

Hell Gurus

this time i have solved the prblm through squid.conf file
Infact synatx has been changed in the newer versions of sqid, but the squids docs are old, according to the sqid doc i did right, but infact the syntax is not correct for the newer/latest versions of squid

now i should right it as

auth_param basic program /usr/lib/squid/ncsa_auth /tmp/passwd

and its working.

Thanks n Regards
Maaz