[squid-users] Can not pass Squid basic authentication

birbird birbird at qq.com
Thu Oct 8 14:50:59 UTC 2015

Hi All,

I have setup basic authentication for Squid, but I can not get passed from browser, just asked to inpu user/password time and time again.

I was stuck at, the command
/usr/lib64/squid/ncsa_auth /etc/squid/squid_passwd
dose not give any output. I think it means squid can not get the authentication info. But I have no idea what to do next.

I create my password by
htpasswd -d /etc/squid/squid_passwd dan

I also tried -m for htpasswd, it do generate different encrypted text, but still can not be recognized by /usr/lib64/squid/ncsa_auth.

My squid config is:

http_access deny !Safe_ports
http_access deny CONNECT !SSL_Ports

auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/squid_passwd
acl ncsa_users proxy_auth REQUIRED

http_access allow ncsa_users

Could anyone please tell what's wrong with this.
Any help will be highly appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20151008/cd55ba48/attachment.html>

More information about the squid-users mailing list