<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Arial Rounded MT Bold";
panose-1:2 15 7 4 3 5 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hey,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The first place to find documents is at:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.squid-cache.org/Versions/v3/3.5/cfgman/external_acl_type.html">http://www.squid-cache.org/Versions/v3/3.5/cfgman/external_acl_type.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But you are not the first to encounter squid and do not understand couple basics.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Like any complex piece of software you can just ask publically or privately.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Eliezer<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial Rounded MT Bold","sans-serif";color:#1F497D'>----<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial Rounded MT Bold","sans-serif";color:#1F497D'><a href="http://ngtech.co.il/lmgtfy/"><span style='color:#0563C1'>Eliezer Croitoru</span></a><br>Linux System Administrator<br>Mobile: +972-5-28704261<br>Email: eliezer@ngtech.co.il<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=183 height=69 id="Picture_x0020_1" src="cid:image001.png@01D1CBA1.DA9D7360"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> squid-users [mailto:squid-users-bounces@lists.squid-cache.org] <b>On Behalf Of </b>Nilesh Gavali<br><b>Sent:</b> Monday, June 20, 2016 8:58 PM<br><b>To:</b> squid-users@lists.squid-cache.org<br><b>Subject:</b> [squid-users] URL access based on AD group membership<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hello Amos;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>is there a simpler way to tackle this as I am not linux guy and not sure howto write any helper program which need to call.</span> <br><br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Regards;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Nilesh Gavali</span> <br><br><br><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt>> Thanks Eliezer for reply.</tt><br><tt>> Its is working now for be perfectly with below command with -d option </tt><br><tt>> gives helpful debug info to troubleshoot.</tt><br><tt>> </tt><br><tt>> external_acl_type AD_Group %LOGIN /usr/lib64/squid/squid_ldap_group -P -R </tt><br><tt>> -b "DC=ABCD,DC=GOV,DC=IN" -D svcproxy -w 123456789 -f </tt><br><tt>> "(&(objectclass=person)(userPrincipalName=%v)(memberof=cn=%a,ou=InternetAccess,ou=Groups,dc=ABCD,dc=GOV,dc=IN))" </tt><br><tt>> -h abcd.gov.in -s sub -v 3 -d</tt><br><tt>> </tt><br><tt>> Currently I have configure squid with AD kerberos auth. also url access </tt><br><tt>> restricted based on AD group membership.</tt><br><tt>> </tt><br><tt>> Now I observed, is that when I add any user to one of the AD group which </tt><br><tt>> allowed in squid. it is not accepting the changes until I restart the </tt><br><tt>> squid service.</tt><br><br><tt>Your external_acl_type has a 1 hour response cache. Meaning it will take</tt><br><tt>a minimum of 1 hour for any changes to the AD group settings to be</tt><br><tt>passed on to Squid.</tt><br><br><br><tt>> </tt><br><tt>> auth_param negotiate program /usr/lib64/squid/squid_kerb_auth -s </tt><br><tt>> <a href="mailto:HTTP/proxy02.abcd.gov.in@ABCD.GOV.IN">HTTP/proxy02.abcd.gov.in@ABCD.GOV.IN</a> </tt><br><tt>> auth_param negotiate children 10 </tt><br><tt>> auth_param negotiate keep_alive on </tt><br><tt>> auth_param basic credentialsttl 2 hours </tt><br><br><tt>NP: settings for Basic authentication do not have any affect on</tt><br><tt>non-Basic types of authentication.</tt><br><br><tt>There is no TTL for Kerberos user credentials. They are valid for as</tt><br><tt>long as the TCP connection to the proxy is open. Any change in the</tt><br><tt>Kerberos security tokens sent by the client after authentication is</tt><br><tt>completed will terminate/close the TCP connection.</tt><br><br><br><tt>> </tt><br><tt>> external_acl_type AD_Group %LOGIN /usr/lib64/squid/squid_ldap_group -P -R </tt><br><tt>> -b "DC=ABCD,DC=GOV,DC=IN" -D svcproxy -w 123456789 -f </tt><br><tt>> "(&(objectclass=person)(userPrincipalName=%u)(memberof=cn=%g,ou=InternetAccess,ou=Groups,dc=ABCD,dc=GOV,dc=IN))" </tt><br><tt>> -h abcd.gov.in -s sub -v 3 -d </tt><br><tt>> </tt><br><br><tt>Since your helper names were outdated 6 years ago I assume you are using</tt><br><tt>Squid-3.1 or older:</tt><br><tt><</tt></span><a href="http://www.squid-cache.org/Versions/v3/3.1/cfgman/external_acl_type.html"><tt><span style='font-size:10.0pt'>http://www.squid-cache.org/Versions/v3/3.1/cfgman/external_acl_type.html</span></tt></a><tt><span style='font-size:10.0pt'>></span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>Note the default values for ttl= , negative_ttl=, and grace=</tt><br><br><tt>Amos</tt></span><o:p></o:p></p><p>=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<o:p></o:p></p></div></body></html>