Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-23-2009, 05:52 AM   #1
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, 06:26 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296

In your squid.conf add this at the end of the acl section
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
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)
/etc/init.d/squid3 restart
Kind regards,



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 12:43 AM
DansGuardian integration with Squid proxy..... linuxlover.chaitanya Linux - Server 19 12-18-2008 11:59 PM
Squid proxy LDAP auth: finding one user noir911 Linux - Server 1 09-15-2008 05:42 PM
[FC5] Trying to integrate Squid proxy with LDAP lachesis Linux - General 0 12-13-2006 10:25 AM
How to benchmark Squid web proxy? geraldomanaus Linux - Software 0 03-17-2005 06:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:03 AM.

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