<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)"><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;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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>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 lfo1'><![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 lfo1'><![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 lfo1'><![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 lfo1'><![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 lfo1'><![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 lfo1'><![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>