Squid authentication With Ldap

install The Squid
# yum install Squid*

and in am already using  The  Ldap with Mail Server as discussed earlier
my ==>  super admin  is  cn=admin,dc=new,dc=com
my  ==> Domain is dc=new,dc=com

# vim /etc/squid/squid.conf
first search auth_param , paste the Following line and change the According to your Domain  

auth_param basic program /usr/lib/squid/squid_ldap_auth -R -b "dc=new,dc=com" -D "cn=admin,dc=new,dc=com" -wkeenable@123 -f mail=%s -h 192.168.100.96
auth_param basic children 5
auth_param basic realm Your Organisation Name
auth_param basic credentialsttl 5 minutes


next search CONNECT paste the Following line

acl ldapauth proxy_auth REQUIRED
http_access allow ldapauth
http_access deny all

and save & Quit squid File

now give setting of your proxy server in client machine with ip and port no 3128.

now when you go in browser for any site it will ask for user name and password.

give the user name and password and enjoy.




Comments

Popular posts from this blog

How to install and configure node js and PM2 in rhel7

PCS Corosync Pacemaker Cluster Mariadb using NFS

How to Create or Configure iSCSI Server and Clinet