<?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; active directory</title>
	<atom:link href="http://www.tipsandtux.org/wordpress/tag/active-directory/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>Postfix: Verifica LDAP in real-time</title>
		<link>http://www.tipsandtux.org/wordpress/postfix-verifica-ldap-in-real-time.html</link>
		<comments>http://www.tipsandtux.org/wordpress/postfix-verifica-ldap-in-real-time.html#comments</comments>
		<pubDate>Mon, 01 Feb 2010 23:22:29 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Gnu/Linux]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[antispam]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=23</guid>
		<description><![CDATA[<p></p>
<p style="margin-bottom: 0cm;">Nella ricezione della posta è opportuno che sia verificata prima di essere inoltrata al server di posta, ovvero che il destinatario esista. Già con questo &#8220;piccolo&#8221; controllo parte dello spam non viene consegnato e non va ad usare risorse utili sul nostro server.</p>
<p style="margin-bottom: 0cm;">Quindi è fondamentale, assieme ad altri controlli, aggiungere questo tipo <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.tipsandtux.org/wordpress/postfix-verifica-ldap-in-real-time.html">Postfix: Verifica LDAP in real-time</a></span>]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H4 { margin-bottom: 0.21cm } 		H4.western { font-family: "Helvetica"; font-size: 11pt; font-style: italic } 		H4.cjk { font-size: 11pt; font-style: italic } 		H4.ctl { font-size: 11pt; font-style: italic } --></p>
<p style="margin-bottom: 0cm;">Nella ricezione della posta è opportuno che sia verificata prima di essere inoltrata al server di posta, ovvero che il destinatario esista. Già con questo &#8220;piccolo&#8221; controllo parte dello spam non viene consegnato e non va ad usare risorse utili sul nostro server.</p>
<p style="margin-bottom: 0cm;">Quindi è fondamentale, assieme ad altri controlli, aggiungere questo tipo di verifica, per ottenere un servizio di posta migliore!</p>
<p style="margin-bottom: 0cm;"><span style="font-size: small;">Questa piccola guida è riferita all&#8217;uso di Postfix, con supporto ldap, in ambiente Gnu/Linux con server Exchange o Lotus Domino</span></p>
<p style="margin-bottom: 0cm;"><span id="more-23"></span></p>
<p><span style="text-decoration: underline;">Query LDAP verso Lotus Domino:</span></p>
<p style="margin-bottom: 0cm;">la sintassi per postfix da aggiungere in<em> /etc/postfix/main.c</em>f è :</p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;"><em>[...]</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_timeout = 10</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_search_base =</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_server_host = ip_del_server_di_posta_Domino</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_server_port = 389</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_query_filter = (mail=%s)</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_result_filter = %s</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_result_attribute = mail</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_scope = sub</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_bind = no</em></p>
<p style="margin-bottom: 0cm;"><em>relay_recipient_maps = ldap:ldap</em></p>
<p style="margin-bottom: 0cm;"><em>[...]</em></p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;"><span style="text-decoration: underline;">Query Ldap verso M$crosoft Exchange:</span></p>
<p style="margin-bottom: 0cm;">mentre nel caso di server M$crosoft Exchange la sintassi da aggiungere in<em> /etc/postfix/main.cf </em>è:</p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;"><em>[...]</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_server_host = ip_del_server_di_posta_Exchange</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_search_base = dc=dominio,dc=it</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_version = 3</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_bind_dn = CN=postfix,CN=Users,DC=dominio,DC=it </em><span style="font-style: normal;">&lt;&#8211; utente, &#8220;base&#8221;, inserito in Active Directory per poter fare la query LDAP</span></p>
<p style="margin-bottom: 0cm;"><em>ldap_bind_pw = utente_postfix_password</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_query_filter = (proxyAddresses=smtp:%s)</em></p>
<p style="margin-bottom: 0cm;"><em>ldap_result_attribute = mail</em></p>
<p style="margin-bottom: 0cm;"><em>relay_recipient_maps = ldap:ldap</em></p>
<p style="margin-bottom: 0cm;"><em>smtpd_recipient_limit = 240</em></p>
<p style="margin-bottom: 0cm;"><em>[...]</em></p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;">In entrambi i casi occorre salvare il file e riavviare il servizio Postfix.<em><br />
</em></p>
<p style="margin-bottom: 0cm;">
<!-- Begin WP-Social-Bookmarking -->
<div class="WP-Social-Bookmarking"> 
<a href="http://www.onlinerel.com/sfeed/?f=aHR0cDovL3d3dy50aXBzYW5kdHV4Lm9yZy93b3JkcHJlc3MvcG9zdGZpeC12ZXJpZmljYS1sZGFwLWluLXJlYWwtdGltZS5odG1s&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/postfix-verifica-ldap-in-real-time.html&amp;t=Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.html  Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.html&t=Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.html&title=Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.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/postfix-verifica-ldap-in-real-time.html&amp;title=Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.html&amp;title=Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.html&amp;title=Postfix: Verifica LDAP in real-time" 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=Postfix: Verifica LDAP in real-time&amp;u=http://www.tipsandtux.org/wordpress/postfix-verifica-ldap-in-real-time.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/postfix-verifica-ldap-in-real-time.html&amp;title=Postfix: Verifica LDAP in real-time&amp;newcomment=Postfix: Verifica LDAP in real-time" 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/postfix-verifica-ldap-in-real-time.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
