<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Chrono101.com</title>
	
	<link>http://www.chrono101.com</link>
	<description>Homepage and Blog for Chrono101</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:53:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Chrono101com" /><feedburner:info uri="chrono101com" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Integrating Drupal with Active Directory with LDAP Integration Module</title>
		<link>http://feedproxy.google.com/~r/Chrono101com/~3/mEMDUNEmqNc/</link>
		<comments>http://www.chrono101.com/index.php/2011/07/01/integrating-drupal-with-active-directory-with-ldap-integration-module/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 05:11:09 +0000</pubDate>
		<dc:creator>Chrono101</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://www.chrono101.com/?p=425</guid>
		<description><![CDATA[I haven&#8217;t found a lot of tutorials online about this, so here&#8217;s how you integrate Drupal 6 with Active Directory using the LDAP Integration modules. I will show you how to configure the Auth, Data, and Groups modules. I had &#8230; <a href="http://www.chrono101.com/index.php/2011/07/01/integrating-drupal-with-active-directory-with-ldap-integration-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t found a lot of tutorials online about this, so here&#8217;s how you integrate Drupal 6 with Active Directory using the <a href="http://drupal.org/project/ldap_integration">LDAP Integration modules</a>. I will show you how to configure the Auth, Data, and Groups modules. I had to do a lot of experimentation to get this working how I wanted it, so your experience may vary.</p>
<h1>Download / Installing</h1>
<ul>
<li>Download the <a href="http://drupal.org/project/ldap_integration">LDAP Integration module</a>.</li>
<li>Enable the module on the modules page.</li>
<li>Enable the &#8220;administer ldap modules&#8221; permission for yourself on the permissions page.</li>
</ul>
<p>The module is now installed and ready to be authenticated against the AD server.</p>
<h1>Configuring LDAP Authentication</h1>
<p>The LDAP Authentication module is the secret sauce to the rest of the modules. Without it, nothing else will work very well (actually not at all).</p>
<ul>
<li>Go to <i>admin/settings/ldap/ldapauth</i> on your site</li>
<li>Click &#8220;Add Server&#8221; tab</li>
<li>Add a unique name for this server</li>
<li>Add the domain or IP, in the format &#8220;<i>ldap://yourdomain.com</i>&#8221;
<li>Add your base DNs in the field, 1 per line</li>
<li>Add the userName Attribute. This is usually <i>sAMAccountName</i> for AD servers</li>
</ul>
<p>The most important step is down at the bottom of the page. Active Directory does not allow anonymous bindings or searches, so you need to configure an account specifically for that purpose. Enter that account&#8217;s name and password in the fields provided. Once you save the page, you can then test that account to make sure it can bind ok. </p>
<h1>Configuring LDAP Data</h1>
<p>The LDAP Data module can be used to pull information from your Active Directory/LDAP server into Drupal&#8217;s <a href="http://drupal.org/documentation/modules/profile">Profile module</a>.</p>
<ul>
<li>Go to <i>admin/settings/ldap/ldapdata</i></li>
<li>Click &#8220;Edit&#8221; on the server config we set up earlier</li>
<li>Configure your mapping preferences (None, Read Only, Read/Write)</li>
</ul>
<p>From there, simply map the corresponding LDAP/AD Attribute to your desired Drupal Profile field. These can be like <i>displayName</i>, <i>sn</i>, or <i>mail</i>. That&#8217;s pretty much it for this module, as it is pretty simple and straightforward with its directions</p>
<h1>Configuring LDAP Groups</h1>
<p>This part was probably the most difficult, and the one I spent the most time with. I ran into problems mostly with how our department&#8217;s AD server had its tree structure laid out. </p>
<ul>
<li>Go to <i>admin/settings/ldap/ldapgroups</i></li>
<li>Click &#8220;Edit&#8221; on the server config we set up earlier</li>
</ul>
<p>From here, it gets a little complicated. There are 3 fieldsets, Group by DN, Group by attribute, and Group by entry. You can actually mix-and-match any of these 3. Our department uses Group by DN and Group by attribute. </p>
<p>For the Group by attribute in AD, you want to put <i>memberOf</i> in the field, since that&#8217;s what is recorded in the LDAP record. </p>
<p>The &#8220;LDAP group to Drupal role limits&#8221; field can be useful if you only have 1 or 2 groups from AD that need brought into Drupal. If you have many groups in AD, I recommend using the &#8220;LDAP group to Drupal role filtering&#8221; fieldset. You can put any of the following into that fieldset, and it will still work: </p>
<ul>
<li>Faculty|Faculty</li>
<li>Staff|Staff</li>
<li>CN=dudes,OU=SecurityGroups,DC=w2k,DC=cis,DC=ksu,DC=edu|dudes</li>
<li>CN=advisor_users,CN=Users,DC=w2k,DC=cis,DC=ksu,DC=edu|advisor</li>
</ul>
<p>Then check the box that reads &#8220;Use LDAP group to Drupal roles filtering&#8221; to only allow the filtering rules you stated earlier to allow account creation. If you just want to pull every account from AD into Drupal, then neither of those fields mean anything, and you can ignore. If you want to get really fancy, you can even supply PHP code to filter and process AD groups to Drupal groups. </p>
<p>If you have any further questions about how to do any of this, please leave a comment and I will get back to you. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/k1B2r9FSyFH7h3q-YB-qQywEErE/0/da"><img src="http://feedads.g.doubleclick.net/~a/k1B2r9FSyFH7h3q-YB-qQywEErE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/k1B2r9FSyFH7h3q-YB-qQywEErE/1/da"><img src="http://feedads.g.doubleclick.net/~a/k1B2r9FSyFH7h3q-YB-qQywEErE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chrono101com/~4/mEMDUNEmqNc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chrono101.com/index.php/2011/07/01/integrating-drupal-with-active-directory-with-ldap-integration-module/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.chrono101.com/index.php/2011/07/01/integrating-drupal-with-active-directory-with-ldap-integration-module/</feedburner:origLink></item>
	</channel>
</rss>

