Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Got PAM working with Squid 2.5STABLE5

Got PAM working with Squid 2.5STABLE5
Thread Tools
Dedicated MacNNer
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jun 7, 2004, 11:11 AM
 
For a long time, I had no clue what PAM was or how "pluggable" it was. After stumbling upon a couple of google hits, I decided to give it a go with Squid web proxy cache.

It's really a piece of cake.

Rather than modifying pam_auth.c in the Squid source files, just make a symbolic link within OS X:

sudo ln -s /usr/include/pam /usr/include/security

Create /etc/pam.d/squid with the following contents:

auth required /usr/lib/pam/pam_securityserver.so
auth required /usr/lib/pam/pam_permit.so

Before compiling squid, remember to enable PAM:

./configure --enable-auth=basic --enable-basic-auth-helpers=PAM,NCSA,LDAP

After "making" squid, update squid.conf to use PAM for basic auth:

auth_param basic program /usr/local/squid/libexec/pam_auth
auth_param basic children 5
auth_param basic realm SQUID
auth_param basic credentialsttl 2 hours

Now, one can authenticate with the Squid proxy using Mac OS X user credentials.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:34 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2