<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tips and Tux &#187; squid</title>
	<atom:link href="http://www.tipsandtux.org/wordpress/tag/squid/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tipsandtux.org/wordpress</link>
	<description>di Linux, Piante Carnivore e non solo... il informatipapàliticarnivoro</description>
	<lastBuildDate>Tue, 07 Sep 2010 21:08:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Autenticazione Squid against LDAP Active Directory</title>
		<link>http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html</link>
		<comments>http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html#comments</comments>
		<pubDate>Tue, 15 Dec 2009 19:02:39 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Gnu/Linux]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=16</guid>
		<description><![CDATA[&#8212;&#8211; con squid fino 2.5.x e Active directory 2003 &#8212;&#8211;
** Autentificazione utenti: **
$/usr/sbin/squid_ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&#38;(userPrincipalName=%s)(objectClass=person))&#8221; 10.13.17.204
TEST:
alessandro password
OK
* quindi in squid.conf:
auth_param basic program /usr/sbin/squid_ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&#38;(userPrincipalName=%s)(objectClass=person))&#8221; 10.13.17.204
+
acl password proxy_auth REQUIRED
+
http_access allow password
&#8212;&#8211; con squid &#62;2.6 e Active directory 2003 (testato con <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html">Autenticazione Squid against LDAP Active Directory</a></span>]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#8212;&#8211; con squid fino 2.5.x e Active directory 2003 &#8212;&#8211;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">** Autentificazione utenti: **</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$/usr/sbin/squid_ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&amp;(userPrincipalName=%s)(objectClass=person))&#8221; 10.13.17.204</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">TEST:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">alessandro password</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">OK</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">* quindi in squid.conf:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">auth_param basic program /usr/sbin/squid_ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&amp;(userPrincipalName=%s)(objectClass=person))&#8221; 10.13.17.204</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">acl password proxy_auth REQUIRED</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http_access allow password</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#8212;&#8211; con squid &gt;2.6 e Active directory 2003 (testato con squid di ubuntu 7.04 e AD 2003 infonet) &#8212;&#8211;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">** Autentificazione utenti: **</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$/usr/lib/squid/ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f sAMAccountName=%s -h 10.13.17.204</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">TEST:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">alessandro password</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">OK</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">*quindi in squid.conf:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">auth_param basic program /usr/lib/squid/ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f sAMAccountName=%s -h 10.13.17.204</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">acl password proxy_auth REQUIRED</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http_access allow password</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">** Autentificazione gruppi di Active directory: ***</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">prerequisito è che l&#8217;autentificazione utenti standard funzioni</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">(auth_param basic program /usr/lib/squid/ldap_auth -p -R -b &#8220;cn=users,dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f sAMAccountName=%s -h 10.13.17.204)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">external_acl_type GruppoDiRete %LOGIN /usr/lib/squid/squid_ldap_group -R -b &#8220;dc=infonetsolutions,dc=loc&#8221; -D &#8220;cn=Administrator,cn=Users,dc=infonetsolutions,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&amp;(objectclass=person)(sAMAccountName=%v)(memberof=cn=%a,ou=Citrix,dc=infonetsolutions,dc=loc))&#8221; -h 10.13.17.204</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">acl password-gruppi proxy_auth REQUIRED</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">acl AccessoInternet external GruppoDiRete Ctx_Internet  # QUEST&#8217;ULTIMO È IL GRUPPO IN AD</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http_access allow AccessoInternet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#8212; Riferimenti: &#8212;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http://www.squid-cache.org</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http://www.papercut.biz/kb/Main/ConfiguringSquidProxyToAuthenticateWithActiveDirectory</div>
<p>Ecco le informazioni per impostare l&#8217;autenticazione esplicita di un proxy Squid su GNU/Linux verso un server LDAP Active Directory.</p>
<p><span id="more-16"></span></p>
<p><strong>&#8212;&#8211; con squid fino 2.5.x e Active directory 2003 (testato con Sles verso Ad 2003) &#8212;&#8211;</strong></p>
<p><em><span style="text-decoration: underline;">** Autenticazione utenti: **</span></em></p>
<p>inserire in squid.conf:</p>
<p><em>auth_param basic program /usr/sbin/squid_ldap_auth -p -R -b &#8220;cn=users,dc=dominio,dc=loc&#8221; -D &#8220;cn=squid,cn=users,dc=dominio,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&amp;(userPrincipalName=%s)(objectClass=person))&#8221; IpAddressLdapServer</em></p>
<p>&amp;</p>
<p><em>acl password proxy_auth REQUIRED</em></p>
<p>&amp;</p>
<p><em>http_access allow password</em></p>
<p><strong>&#8212;&#8211; con squid &gt;2.6 e Active directory 2003 (testato con squid di ubuntu 7.04 e SLES verso AD 2003) &#8212;-</strong></p>
<p><em><span style="text-decoration: underline;">** Autenticazione utenti: **</span></em></p>
<p>inserire in in squid.conf:</p>
<p><em>auth_param basic program /usr/lib/squid/ldap_auth -p -R -b &#8220;cn=users,dc=dominio,dc=loc&#8221; -D &#8220;cn=squid,cn=users,dc=dominio,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f sAMAccountName=%s -h IpAddressLdapServer</em></p>
<p>&amp;</p>
<p><em>acl password proxy_auth REQUIRED</em></p>
<p>&amp;</p>
<p><em>http_access allow password</em></p>
<p><em><span style="text-decoration: underline;">** Autenticazione degli utenti e gruppi di Active directory: ***</span></em></p>
<p>con questa configurazione gli utenti oltre ad autenticare sè stessi devono anche appartenere ad un determinato gruppo di Active Directory per poter accedere ad internet tramite il proxy</p>
<p>(prerequisito è che l&#8217;autentificazione utenti standard funzioni)</p>
<p><em>auth_param basic program /usr/lib/squid/ldap_auth -p -R -b &#8220;cn=users,dc=dominio,dc=loc&#8221; -D &#8220;cn=squidr,cn=users,dc=dominio,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f sAMAccountName=%s -h IpAddressLdapServer</em></p>
<p>&amp;</p>
<p><em>external_acl_type GruppoDiRete %LOGIN /usr/lib/squid/squid_ldap_group -R -b &#8220;dc=dominio,dc=loc&#8221; -D &#8220;cn=squid,cn=Users,dc=dominio,dc=loc&#8221; -w &#8220;PASSWORD&#8221; -f &#8220;(&amp;(objectclass=person)(sAMAccountName=%v)(memberof=cn=%a,ou=SquidGroup,dc=dominio,dc=loc))&#8221; -h IpAddressLdapServer</em></p>
<p>&amp;</p>
<p><em>acl password-gruppi proxy_auth REQUIRED</em></p>
<p>&amp;</p>
<p><em>acl AccessoInternet external GruppoDiRete SquidGroup  # QUEST&#8217;ULTIMO È IL GRUPPO IN AD</em></p>
<p>&amp;</p>
<p><em>http_access allow AccessoInternet</em></p>
<p>&#8212; Riferimenti: &#8212;</p>
<p>http://www.squid-cache.org</p>
<p>http://www.papercut.biz/kb/Main/ConfiguringSquidProxyToAuthenticateWithActiveDirectory</p>
<p><strong>ENJOY <img src='http://www.tipsandtux.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong></p>
<!-- Begin WP-Social-Bookmarking -->
<div class="WP-Social-Bookmarking"> 
<a href="http://www.onlinerel.com/sfeed/?f=aHR0cDovL3d3dy50aXBzYW5kdHV4Lm9yZy93b3JkcHJlc3MvYXV0ZW50aWNhemlvbmUtc3F1aWQtYWdhaW5zdC1sZGFwLWFjdGl2ZS1kaXJlY3RvcnkuaHRtbA==&l=it-IT" target="_blank" title="Onlinerel"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/onlinerel.png" style="width:24px;height:24px;border:0px;" alt="Onlinerel" title="Onlinerel" /></a>
<a href="http://facebook.com/sharer.php?u=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&amp;t=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="Facebook"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/facebook.png" style="width:24px;height:24px;border:0px;" alt="Facebook" title="Facebook" /></a>
<a href="http://twitter.com/home?status=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html  Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="Twitter"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/twitter.png" style="width:24px;height:24px;border:0px;" alt="Twitter" title="Twitter" /></a>
<a href="http://www.myspace.com/Modules/PostTo/Pages/?c=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&t=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="Myspace"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/myspace.png" style="width:24px;height:24px;border:0px;" alt="Myspace" title="Myspace" /></a>
<a href="http://friendfeed.com/share?url=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&title=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="Friendfeed"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/friendfeed.png" style="width:24px;height:24px;border:0px;" alt="Friendfeed" title="Friendfeed" /></a>
<a href="http://www.technorati.com/faves?add=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html" target="_blank" rel="nofollow" title="Technorati"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/technorati.png" style="width:24px;height:24px;border:0px;" alt="Technorati" title="Technorati" /></a>
<a href="http://del.icio.us/post?url=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&amp;title=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="del.icio.us"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/delicious.png" style="width:24px;height:24px;border:0px;" alt="del.icio.us" title="del.icio.us" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&amp;title=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="Digg"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/digg.png" style="width:24px;height:24px;border:0px;" alt="Digg" title="Digg" /></a>
<a href="http://google.com/bookmarks/mark?op=add&amp;bkmk=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&amp;title=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="Google"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/google.png" style="width:24px;height:24px;border:0px;" alt="Google" title="Google" /></a>
<a href="http://buzz.yahoo.com/submit?submitUrl=Autenticazione Squid against LDAP Active Directory&amp;u=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html" target="_blank" rel="nofollow" title="Yahoo Buzz"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/yahoobuzz.png" style="width:24px;height:24px;border:0px;" alt="Yahoo Buzz" title="Yahoo Buzz" /></a>
<a href="http://stumbleupon.com/submit?url=http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html&amp;title=Autenticazione Squid against LDAP Active Directory&amp;newcomment=Autenticazione Squid against LDAP Active Directory" target="_blank" rel="nofollow" title="StumbleUpon"><img src="http://www.tipsandtux.org/wordpress/wp-content/plugins/wp-social-bookmarking/images/stumbleupon.png" style="width:24px;height:24px;border:0px;" alt="StumbleUpon" title="StumbleUpon" /></a>
</div><br /> <!-- End WP-Social-Bookmarking -->

]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/autenticazione-squid-against-ldap-active-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
