Posts

Showing posts from May, 2012

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.

Postfix With LDAP

                POstfix Wiht Ldap # yum install postfix* php* http*  openldap* rpm* # yum install system-switch-mail* # system-switch-mail Change sendmail to postfix [*] sendmail [] postfix change [] sendmail [*] postfix # useradd  raju #password raju # useradd  virtual # vim /etc/passwd  ==> change virtual:x:1001:1001::/home/virtual:/bin/bash # vim /etc/group ==> change virtual:x:1001: Download Sum Tar & RPM # su - raju $ wget http://ftp.wl0.org/official/2.8/SRPMS/postfix-2.8.2-1.src.rpm $ wget http://citylan.dl.sourceforge.net/project/courier/imap/4.9.2/courier-imap-4.9.2.tar.bz2 $ wget https://sourceforge.net/projects/courier/files/authlib/0.63.0/courier-authlib-0.63.0.tar.bz2/download $ echo "%_topdir    $HOME/rpm" >> $HOME/.rpmmacros $ mkdir rpm $ cd rpm/ $ mkdir  BUILD  RPMS  SOURCES  SPECS  SRPMS $ cd RPMS/ $ mkdir  i386 $ rpm -ivh postfix-2.8.2-1.src.rpm $ cd rpm/SPECS/ $ vim postfix.spec  ===> Change The Lines %d