LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2009, 06:52 AM   #1
forlinux_websense
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
LDAP integration in Squid web proxy


I have installed RED HAT Enterprise Linux along with Squid web proxy.

How do I do a LDAP integration?
 
Old 07-23-2009, 07:26 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

In your squid.conf add this at the end of the acl section
Code:
auth_param basic program /lib/squid3/squid_ldap_auth -R -b "dc=domain,dc=com" -D "cn=ldapuserwithaccess,cn=Users,dc=domain,dc=com" -w "theuserspassword" -f sAMAccountName=%s -h XXX.XXX.XXX.XXX
auth_param basic children 5
auth_param basic credentialsttl 5 minutes
acl ldap_users proxy_auth REQUIRED
where XXX should of course be replaced by the ip of your ldap server.

Add this at the top of the http_access section of squid.conf
Code:
http_access allow ldap_users
Might be that your squid_ldap_auth is located in another directory depending on how you installed it.

The above works perfect for me on my reverse proxy using Squid 3.

Don't forget to restart Squid with (this one is for Debian, don't know yours)
Code:
/etc/init.d/squid3 restart
Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting squid proxy to authenticate thru windows AD using LDAP ericbugagao Linux - Newbie 0 02-22-2009 01:43 AM
DansGuardian integration with Squid proxy..... linuxlover.chaitanya Linux - Server 19 12-19-2008 12:59 AM
Squid proxy LDAP auth: finding one user noir911 Linux - Server 1 09-15-2008 06:42 PM
[FC5] Trying to integrate Squid proxy with LDAP lachesis Linux - General 0 12-13-2006 11:25 AM
How to benchmark Squid web proxy? geraldomanaus Linux - Software 0 03-17-2005 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration