[squid-users] SQUID authentication via PAM

From: Kristina Mpoyi-Mpoyi <kristina@dont-contact.us>
Date: Mon, 26 Mar 2001 14:53:25 +0900

Hello.
I am trying to get squid to authenticate with
/etc/shadow via pam.

I have squid-2.3.STABLE4.tar.gz installed on
Solaris 7 sparc. I completed the steps below.
When I manually execute pam_auth my username
and password gets authenticated correctly against
/etc/shadow. However, when I try to authenticate
through squid, authentication fails.

Any hints would be greatly appreciated,

Kristina

--------------------------------------------
(1) Edit squid.conf
% vi /usr/local/squid/etc/squid.conf
authenticate_program /usr/local/squid/bin/pam_auth

(2) Edit /etc/pam.conf
squid auth required /usr/lib/security/pam_unix.so.1 shadow nullok
squid account required /usr/lib/security/pam_unix.so.1

(3) Change permissions of pam_auth
% suid /usr/local/squid/bin/pam_auth
% chmod 7755 /usr/local/squid/bin/pam_auth
% ls -l /usr/local/squid/bin/pam_auth
-rwsr-sr-t 1 nobody nogroup pam_auth

(4) Test to see if pam_auth works
% /usr/local/squid/bin/pam_auth
username password
OK
------------------------------------------
Received on Sun Mar 25 2001 - 22:53:30 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:51 MST