<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=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
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;}
span.StileMessaggioDiPostaElettronica19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.StileMessaggioDiPostaElettronica20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:709259434;
mso-list-type:hybrid;
mso-list-template-ids:-613357368 135266321 135266329 135266331 135266319 135266329 135266331 135266319 135266329 135266331;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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=IT-CH link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hello.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>In the previous message I forgot to include what I did till now in squid.conf (edited to replace sensitive information).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>In part from default conf and in part from old installation and in part adapted to my needs.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thank you and best regards.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Robi</span><span style='color:#1F497D;mso-fareast-language:IT-CH'><o:p></o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:IT-CH'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=IT style='mso-fareast-language:IT-CH'>Da:</span></b><span lang=IT style='mso-fareast-language:IT-CH'> squid-users <squid-users-bounces@lists.squid-cache.org> <b>Per conto di </b>Roberto Nunnari<br><b>Inviato:</b> luned́, 10 agosto 2020 10:44<br><b>A:</b> squid-users@lists.squid-cache.org<br><b>Oggetto:</b> [squid-users] Basic explanation on configuration<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I need to build a new linux server with squid to replace an old one.<o:p></o:p></p><p class=MsoNormal>The old server is running squid version 3.3.8 and authenticates against Active Directory. In the conf I see ldap, ntlm, kerberos and negotiator + wbinfo.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The new server is running squid version 4.4.8. I’m trying to keep it simple and keep the conf file clean.<o:p></o:p></p><p class=MsoNormal>That’s why for authentication and authorization I try to use only basic_ldap_auth and ext_ldap_group_acl.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I would like to understand the basics of squid.conf but I find the online documentation is missing the basics.. for instance I believe the acl directive uses logical ‘and’ when using multiple values on the same line, and uses logical ‘or’ when using multiple lines for the same acl name..<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>That is something it should be written clear in the documentation. Maybe it is somewhere, but I could not find that information.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Same for http_access.. how does it works? What happens when the first match is found? It applies the rule and exits or it goes on to the next lines?<o:p></o:p></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'>What I need to implement is more or less this :<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR-CH style='mso-fareast-language:IT-CH'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR-CH style='mso-fareast-language:IT-CH'>Every user needs to provide valid username and password (from AD).<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR-CH style='mso-fareast-language:IT-CH'><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR-CH style='mso-fareast-language:IT-CH'>Users who belongs to a given AD group, can go on and access the internet<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR-CH style='mso-fareast-language:IT-CH'><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR-CH style='mso-fareast-language:IT-CH'>Other users need to be inside a file. If they are found in that file, they can access the internet<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR-CH style='mso-fareast-language:IT-CH'><span style='mso-list:Ignore'>4)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR-CH style='mso-fareast-language:IT-CH'>Some websites are accessible without being in group 2) or in file 3)<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR-CH style='mso-fareast-language:IT-CH'><span style='mso-list:Ignore'>5)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR-CH style='mso-fareast-language:IT-CH'>Some websites are forbidden for everybody<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR-CH style='mso-fareast-language:IT-CH'><span style='mso-list:Ignore'>6)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR-CH style='mso-fareast-language:IT-CH'>Some websites are allowed only for users in group 2)<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'>I’ll appreciate some help.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'>Thank you and best regards.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-CH style='mso-fareast-language:IT-CH'>Robi</span><o:p></o:p></p></div></body></html>