<div dir="ltr"><div style="font-size:12.8000001907349px">I have been trying to test squid but it doesn't seems to be working. The closest example I studied are:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><a href="http://etutorials.org/Server+Administration/Squid.+The+definitive+guide/Chapter+12.+Authentication+Helpers/12.5+External+ACLs/" target="_blank">http://etutorials.org/Server+Administration/Squid.+The+definitive+guide/Chapter+12.+Authentication+Helpers/12.5+External+ACLs/</a></div><div style="font-size:12.8000001907349px"><a href="http://www.stress-free.co.nz/transparent_squid_authentication_to_edirectory" target="_blank">http://www.stress-free.co.nz/transparent_squid_authentication_to_edirectory</a></div><div style="font-size:12.8000001907349px">but none of it works.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">From the simple test, I did on the following:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The print "ERR" supposed to have an out put at the cache.log, but I din't see anything appearing</div><div style="font-size:12.8000001907349px">Neither I change the "ERR" nor "OK", there is no effect on the access.</div><div style="font-size:12.8000001907349px">I just want a simple test, if set to print "ERR" then stop user to proceed, if "OK" then proceed.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The error message in cache.log</div><div style="font-size:12.8000001907349px">2015/07/28 11:45:56 kid1| helperHandleRead: unexpected reply on channel 0 from mysql_log #Hlpr17 ''</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">squid.conf is:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">auth_param basic program /usr/lib64/squid/basic_ldap_auth -v 3 -b "dc=xxx,dc=edu.xx" -D "cn=Manager,dc=xxx,dc=edu.xx"  -w passwd -f uid=%s ldap.xxx.edu.xx:389</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">acl ldap-auth proxy_auth REQUIRED</div><div style="font-size:12.8000001907349px">auth_param basic children 5</div><div style="font-size:12.8000001907349px">auth_param basic realm Web Proxy Server</div><div style="font-size:12.8000001907349px">auth_param basic credentialsttl 1 minute</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">external_acl_type mysql_log %SRC %LOGIN %{Host} /home/squid/<a href="http://quota_helper.pl/" target="_blank">quota_helper.pl</a></div><div style="font-size:12.8000001907349px">acl ex_log external mysql_log</div><div style="font-size:12.8000001907349px">http_access allow ex_log</div><div style="font-size:12.8000001907349px">....</div><div style="font-size:12.8000001907349px">http_access allow ldap-auth</div><div style="font-size:12.8000001907349px">http_access allow localnet</div><div style="font-size:12.8000001907349px">http_access allow localhost</div><div style="font-size:12.8000001907349px">http_access deny all</div><div style="font-size:12.8000001907349px"><a href="http://quota_helper.pl/" target="_blank">quota_helper.pl</a> is:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">#!/usr/bin/perl -wl</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">$|=1;</div><div style="font-size:12.8000001907349px">while(<STDIN>){</div><div style="font-size:12.8000001907349px">print "ERR";</div><div style="font-size:12.8000001907349px">}</div><div style="font-size:12.8000001907349px">[root@localhost ~]# squid -v shows:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Squid Cache: Version 3.5.5</div><div style="font-size:12.8000001907349px">Service Name: squid</div><div style="font-size:12.8000001907349px">configure options:  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--exec_prefix=/usr' '--libexecdir=/usr/lib64/squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--with-logdir=$(localstatedir)/log/squid' '--with-pidfile=$(localstatedir)/run/squid.pid' '--disable-dependency-tracking' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-auth-basic=DB,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB,getpwnam' '--enable-auth-ntlm=smb_lm,fake' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-external-acl-helpers=wbinfo_group,kerberos_ldap_group' '--enable-cache-digests' '--enable-cachemgr-hostname=localhost' '--enable-delay-pools' '--enable-epoll' '--enable-icap-client' '--enable-ident-lookups' '--enable-linux-netfilter' '--enable-removal-policies=heap,lru' '--enable-snmp' '--enable-storeio=aufs,diskd,ufs,rock' '--enable-wccpv2' '--enable-esi' '--enable-ssl-crtd' '--enable-icmp' '--with-aio' '--with-default-user=squid' '--with-filedescriptors=16384' '--with-dl' '--with-openssl' '--with-pthreads' '--with-included-ltdl' '--disable-arch-native' '--without-nettle' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -fPIC' 'PKG_CONFIG_PATH=%{_PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig' --enable-ltdl-convenience</div><div style="font-size:12.8000001907349px">[root@localhost ~]#</div></div>