Squid 3 Pam Auth issue
Hi Guys
I have recently set up a Squid 3 on Squeeze and am trying to get some basic authentication for it up and running. I've followed just about every tut on how to do this for Pam auth, but it doesn't seem to be working... There are no errors or anything that I can see, just that no auth prompt shows up in the browser when testing. My squid.conf Code:
auth_param basic program /usr/lib/squid3/basic_pam_auth Code:
auth required /lib/security/pam_unix.so Code:
2013/05/03 09:33:16 kid1| Starting Squid Cache version 3.2.0.16 for x86_64-pc-linux-gnu... The permission on 'basic_pam_auth' are... -rwsr-xr-x 1 root root 14648 Apr 3 2012 basic_pam_auth So everything "seems ok", but for the life of me, it just plain doesn't work. Have I missed something at all here? |
In your Squid ACLs, ensure that there are no rules above it that your connection is being filtered through. It goes top-down, so if you have an ALLOW rule that matches then it'll never reach your authentication ACL.
|
The problem is most likely in your ACLs as masterxc told above.
I was able to get Squid3 with PAM authentication working on Debian Squeeze and here's my configuration. /etc/squid3/squid.conf (there may be some stuff that's not needed but it should work) Code:
auth_param basic program /usr/lib/squid3/pam_auth Code:
auth required pam_unix.so Squid also needs to access /etc/shadow. Code:
# gpasswd -a proxy shadow |
Thank you both
Both of you guys were correct in that ACL rules were the problem. It was not in the correct order and I have now rearranged it to be from top down, and bam!, all is well! Thanks masterxc & silli. |
All times are GMT -5. The time now is 02:23 PM. |