LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LDAP integration in Squid web proxy (https://www.linuxquestions.org/questions/linux-newbie-8/ldap-integration-in-squid-web-proxy-742197/)

forlinux_websense 07-23-2009 05:52 AM

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?

EricTRA 07-23-2009 06:26 AM

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


All times are GMT -5. The time now is 10:20 PM.