<?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>edsysad.org &#187; ldap</title>
	<atom:link href="http://edsysad.org/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://edsysad.org</link>
	<description>another ed blogger....</description>
	<lastBuildDate>Fri, 27 Aug 2010 16:13:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Elgg 1.1 LDAP Setup Working</title>
		<link>http://edsysad.org/2008/11/27/elgg-10-ldap-setup-working/</link>
		<comments>http://edsysad.org/2008/11/27/elgg-10-ldap-setup-working/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 14:16:06 +0000</pubDate>
		<dc:creator>Andrew Chlup</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[ldap]]></category>

		<guid isPermaLink="false">http://edsysad.org/?p=43</guid>
		<description><![CDATA[I&#8217;ve finally had a chance to play with the new version of Elgg. The first order of business was to getting LDAP working for authentication and account creation. While the interface was quite a bit different, the setup was very similar to the previous version. As an added bonus the configuration is done through the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally had a chance to play with the new version of Elgg. The first order of business was to getting LDAP working for authentication and account creation. While the interface was quite a bit different, the setup was very similar to the previous version. As an added bonus the configuration is done through the web interface without needing to edit configuration files.</p>
<p>Things you need:</p>
<ul>
<li>Running Elgg Installation</li>
<li>Running LDAP Server with user information</li>
<li>LDAP Browser tool (I prefer <a title="JXplorer Open-Source LDAP browser" href="http://www.jxplorer.org/" target="_self">JXplorer</a>) highly recommended</li>
</ul>
<p><span id="more-43"></span></p>
<h3>Section 1: Verify Elgg and LDAP are working</h3>
<p>You should begin by verifying that both your Elgg and LDAP are working correctly. You can check your Elgg installation by navigating to your Elgg site and logging in as the admin user. If you can log in and navigate around then your Elgg install is most likely good.</p>
<div id="attachment_44" class="wp-caption aligncenter" style="width: 510px"><a href="http://edsysad.org/wp-content/uploads/2008/11/firefoxscreensnapz001.jpg"><img class="size-full wp-image-44" title="Elgg Install" src="http://edsysad.org/wp-content/uploads/2008/11/firefoxscreensnapz001.jpg" alt="Elgg Install" width="500" height="340" /></a><p class="wp-caption-text">Elgg Install</p></div>
<p>Now we need to make sure that you can access your LDAP remotely. I&#8217;ve found that JXplorer is a great JAVA based LDAP tool. <a title="JXplorer Open-Source LDAP browser" href="http://www.jxplorer.org/" target="_self">Download JXplorer</a> and try making a connection with your LDAP info.</p>
<div id="attachment_47" class="wp-caption aligncenter" style="width: 360px"><a href="http://edsysad.org/wp-content/uploads/2008/11/jxplorer.jpg"><img class="size-full wp-image-47" title="jxplorer" src="http://edsysad.org/wp-content/uploads/2008/11/jxplorer.jpg" alt="JXplorer Connection Menu" width="350" height="262" /></a><p class="wp-caption-text">JXplorer Connection Menu</p></div>
<p>If the connection is successful then you see you LDAP data in the results menu. You will need to drill down through your LDAP until you get to users. Choose a user and click the &#8220;Table Edit&#8221; tab. The &#8220;Table Edit&#8221; view allows you to see all of the user atributes.</p>
<div id="attachment_48" class="wp-caption aligncenter" style="width: 510px"><a href="http://edsysad.org/wp-content/uploads/2008/11/ldap-listing.jpg"><img class="size-full wp-image-48" title="ldap-listing" src="http://edsysad.org/wp-content/uploads/2008/11/ldap-listing.jpg" alt="Table View in JXplorer with user attributes" width="500" height="287" /></a><p class="wp-caption-text">Table View in JXplorer with user attributes</p></div>
<p>If you have successfully verified you Elgg installation and connected to your LDAP server remotely, you are ready to setup Elgg LDAP authentication.</p>
<h3>Section 2: Install and Configure the LDAP plugin from the Elgg admin UI</h3>
<p>First, log into your Elgg installation as an admin user. Navigate to the admin page from the dashboard link &#8220;administration&#8221;. Once there, click on the &#8220;Tool Administration&#8221; link. This will bring all of the Elgg plugins you have on your installation. If you have the plugin for LDAP you will see a plugin named &#8220;ldap_auth&#8221;.</p>
<p><a href="http://edsysad.org/wp-content/uploads/2008/11/ldap_auth.jpg"><img class="aligncenter size-medium wp-image-49" title="ldap_auth" src="http://edsysad.org/wp-content/uploads/2008/11/ldap_auth-300x33.jpg" alt="" width="300" height="33" /></a></p>
<p>If you are missing &#8220;ldap_auth&#8221; you will need to go to elgg.org and <a title="Elgg LDAP plugin" href="http://elgg.org/getplugin.php?forward=ldap_auth.zip" target="_blank">download it</a>. Take the &#8220;ldap_auth&#8221; folder and put it in &lt;elgg home&gt;/mod/. The &#8220;mod&#8221; folder holds all of the Elgg plugins.</p>
<p>You can either refresh you page or log back into your Elgg install and you should now see &#8220;ldap_auth&#8221;.</p>
<p>Now you need to configure your LDAP settings for authentication. You open the configuration by clicking the &#8220;more info&#8221; link underneath &#8220;ldap_auth&#8221;.</p>
<div id="attachment_50" class="wp-caption aligncenter" style="width: 460px"><a href="http://edsysad.org/wp-content/uploads/2008/11/ldap_auth_settings.jpg"><img class="size-full wp-image-50" title="ldap_auth_settings" src="http://edsysad.org/wp-content/uploads/2008/11/ldap_auth_settings.jpg" alt="LDAP_Auth settings" width="450" height="308" /></a><p class="wp-caption-text">LDAP_Auth settings</p></div>
<p>Begin by putting in your host settings that you verified with JXplorer.</p>
<p>**Make sure that your Elgg server can resolve your LDAP servers DNS!**</p>
<p>Next we&#8217;ll configure the LDAP settings.</p>
<div id="attachment_51" class="wp-caption aligncenter" style="width: 460px"><a href="http://edsysad.org/wp-content/uploads/2008/11/ldap_settings.jpg"><img class="size-full wp-image-51" title="ldap_settings" src="http://edsysad.org/wp-content/uploads/2008/11/ldap_settings.jpg" alt="LDAP Settings" width="450" height="402" /></a><p class="wp-caption-text">LDAP Settings</p></div>
<h4>Step1: Bind Info</h4>
<p>If you can do anonymous binds to your LDAP server than leave bind DN and bind password blank. Otherwise fill in the entire LDAP string for your bind DN <strong>(i.e. uid=&lt;diruser&gt;,cn=users,dc=ldap,dc=edsysad,dc=org)</strong> and password.</p>
<h4>Step2: Base DN</h4>
<p>This is the value you used to connect to your LDAP with jXplorer.</p>
<h4>Step3: Username filter attribute</h4>
<p>The plugin gives the three most username attributes for Linux and OS X &#8220;uid&#8221; and Windows AD &#8220;sAMAccountName&#8221;. If you use a non-standard attribute for username then it may be different.</p>
<h4>Step4: Search attributes:</h4>
<p>This step is the most important because it maps LDAP attributes to the variables needed for account creation and authentication. In most cases, the example given &#8220;firstname:givenname, lastname:sn, mail:mail&#8221; works but verify the attributes using jXplorer.</p>
<h4>Step5: Create Users</h4>
<p>When enabled this allows Elgg to create a new user account when a user authenticates to your Elgg installation. It means that any user in your LDAP directory can create an account. When disabled, LDAP users with a local account will get an error while users with a local account can login using their LDAP password.</p>
<h3>Section 3: Test LDAP authentication</h3>
<p>Try logging in as a LDAP user. If all is well their account should automatically be created. If not then verify your LDAP connection settings and verify your attribute mappings.</p>
]]></content:encoded>
			<wfw:commentRss>http://edsysad.org/2008/11/27/elgg-10-ldap-setup-working/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding SSL Support to OpenDirectory Replica</title>
		<link>http://edsysad.org/2008/10/31/adding-ssl-support-to-opendirectory-replica/</link>
		<comments>http://edsysad.org/2008/10/31/adding-ssl-support-to-opendirectory-replica/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 00:24:11 +0000</pubDate>
		<dc:creator>Andrew Chlup</dc:creator>
				<category><![CDATA[Apple Server Admin]]></category>
		<category><![CDATA[10.5 Server]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[LDAPS]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://edsysad.org/?p=28</guid>
		<description><![CDATA[While configuring our web filter, we realized that Apple&#8217;s default master/slave setup only allows LDAPS through the master server. This has some major limitations in regards to the usefulness of replicas. It turns out that one simple terminal command solves the problem. sudo slapconfig -setldapconfig -ssl on -sslcert /etc/certificate/&#60;your certificate&#62;.crt -sslkey /etc/certificate/&#60;your certificate&#62;.key -ssldomain &#60;server [...]]]></description>
			<content:encoded><![CDATA[<p>While configuring our web filter, we realized that Apple&#8217;s default master/slave setup only allows LDAPS through the master server. This has some major limitations in regards to the usefulness of replicas. It turns out that one simple terminal command solves the problem.</p>
<p style="padding-left: 30px;">sudo slapconfig -setldapconfig -ssl on -sslcert /etc/certificate/&lt;your certificate&gt;.crt -sslkey /etc/certificate/&lt;your certificate&gt;.key -ssldomain &lt;server domain&gt;</p>
<p>If there&#8217;s a way to do this through the GUI I couldn&#8217;t find it. Hope this helps somebody else out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://edsysad.org/2008/10/31/adding-ssl-support-to-opendirectory-replica/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elgg LDAP Problem Solved&#8230;</title>
		<link>http://edsysad.org/2008/03/04/elgg-ldap-problem-solved/</link>
		<comments>http://edsysad.org/2008/03/04/elgg-ldap-problem-solved/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 03:17:22 +0000</pubDate>
		<dc:creator>Andrew Chlup</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ldap]]></category>

		<guid isPermaLink="false">http://edsysad.org/2008/03/04/elgg-ldap-problem-solved/</guid>
		<description><![CDATA[As I was experimenting with Elgg and LDAP, I realized that none of the users create via LDAP authentication would so up in browse until somebody added them as a friend. Of course adding somebody who doesn&#8217;t show up in the list is a bit difficult so it was sort of a deal breaker. It [...]]]></description>
			<content:encoded><![CDATA[<p>As I was experimenting with Elgg and LDAP, I realized that none of the users create via LDAP authentication would so up in browse until somebody added them as a friend. Of course adding somebody who doesn&#8217;t show up in the list is a bit difficult so it was sort of a deal breaker.</p>
<p>It turns out that the friends able is used someway in the browse feature and users that register themselves are automatically made friends with a &#8220;0&#8243; user that doesn&#8217;t really exist. So basically, you have to add a little code to the <em>/auth/LDAP/lib.php  </em>and then your LDAP created users will work wonderfully.</p>
<p>Basically, I slightly modified a post that I found on the <a href="http://elgg.org/mod/vanillaforum/vanilla/comments.php?DiscussionID=619" title="Elgg Forums">Elgg forums</a>.</p>
<p>1. Find line 153:</p>
<blockquote><p>$user_id = insert_record(&#8216;users&#8217;,$user);</p></blockquote>
<p>2. Add the following below:</p>
<blockquote><p>    // adds &#8220;virtual&#8221; friend, so that user has at least one connection, and shows up in the browse feature.<br />
$newid = user_info_username(&#8216;ident&#8217;, $username);<br />
$owner = 0;<br />
$f = new StdClass;<br />
$f-&gt;owner = $owner;<br />
$f-&gt;friend = $newid;<br />
$f-&gt;status = &#8216;perm&#8217;;</p>
<p>insert_record(&#8216;friends&#8217;,$f);</p></blockquote>
<p>The additionally code simple grabs the new users &#8220;ident&#8221; from the User table and inserts a friend record with the shadowy &#8220;0&#8243; user.</p>
<p>Now, if I can just figure out how to setup the tag cloud to work correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://edsysad.org/2008/03/04/elgg-ldap-problem-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
