<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: LDAP Enabling The Eventum Defect Tracking System</title>
	<atom:link href="http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/</link>
	<description>Looking for the practical in a world full of cruft</description>
	<pubDate>Mon, 13 Oct 2008 11:51:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: R.H. Hartman</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43349</link>
		<dc:creator>R.H. Hartman</dc:creator>
		<pubDate>Mon, 29 Sep 2008 06:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43349</guid>
		<description>Thanks for this. Works like a charm.
I took the liberty of making a few mods:
1) Instead of replacing the function isCorrectPassword I just replaced the existing authentication-failed return:

            if ($passwd != Auth::hashPassword($password)) {
                return false;
            } else {
                return true;
            }

by your module call:

            if ($passwd != Auth::hashPassword($password)) {
                return(LDAPAuthenticator::ldap_authenticate($email, $password));
            } else {
                return true;
            }

so it now attempts local authentication before LDAP.

I also modified the LDAPAuthenticator by taking out the BIND_DN and BIND_PASSWORD bits, as my LDAP server allows anonymous lookup of the user's dn (OpenLDAP on RHEL5/Centos5). I suspect this will be valid for most implementations. And I found I do not need the LDAP_PORT setting: ldap:// will use port 389, ldaps:// will use port 636.

Tip: When using multiple, synchronized LDAP servers, you can specify those in the LDAP_HOST parameter like:

define("LDAP_HOST", 'ldaps://ldapserver1.example.com,ldaps://ldapserver2.example.com');

If ldapserver1 is down, automatic failover to ldapserver2 will occur (use 'bind_policy soft' in ldap.conf).</description>
		<content:encoded><![CDATA[<p>Thanks for this. Works like a charm.<br />
I took the liberty of making a few mods:<br />
1) Instead of replacing the function isCorrectPassword I just replaced the existing authentication-failed return:</p>
<p>            if ($passwd != Auth::hashPassword($password)) {<br />
                return false;<br />
            } else {<br />
                return true;<br />
            }</p>
<p>by your module call:</p>
<p>            if ($passwd != Auth::hashPassword($password)) {<br />
                return(LDAPAuthenticator::ldap_authenticate($email, $password));<br />
            } else {<br />
                return true;<br />
            }</p>
<p>so it now attempts local authentication before LDAP.</p>
<p>I also modified the LDAPAuthenticator by taking out the BIND_DN and BIND_PASSWORD bits, as my LDAP server allows anonymous lookup of the user&#8217;s dn (OpenLDAP on RHEL5/Centos5). I suspect this will be valid for most implementations. And I found I do not need the LDAP_PORT setting: ldap:// will use port 389, ldaps:// will use port 636.</p>
<p>Tip: When using multiple, synchronized LDAP servers, you can specify those in the LDAP_HOST parameter like:</p>
<p>define(&#8221;LDAP_HOST&#8221;, &#8216;ldaps://ldapserver1.example.com,ldaps://ldapserver2.example.com&#8217;);</p>
<p>If ldapserver1 is down, automatic failover to ldapserver2 will occur (use &#8216;bind_policy soft&#8217; in ldap.conf).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Ernesto Suarez</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43330</link>
		<dc:creator>Jose Ernesto Suarez</dc:creator>
		<pubDate>Fri, 12 Sep 2008 16:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43330</guid>
		<description>Hi!

I try to use your piece of code with some headaches.. now, I run this with two modifications:
LDAP_BIND_DN wiritten in Netbios form "DOMAIN\Administrator"

setting option ldap_set_option($server, LDAP_OPT_REFERRALS, 0); 
in order to search from the root DN  (usually, in small domains one user is searched in the entire domain)

I´m thinking the manner to add "automagically" the users in the database... if finally i do that, don´t worry , I´ll send you the mods.

Thanks for all!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I try to use your piece of code with some headaches.. now, I run this with two modifications:<br />
LDAP_BIND_DN wiritten in Netbios form &#8220;DOMAIN\Administrator&#8221;</p>
<p>setting option ldap_set_option($server, LDAP_OPT_REFERRALS, 0);<br />
in order to search from the root DN  (usually, in small domains one user is searched in the entire domain)</p>
<p>I´m thinking the manner to add &#8220;automagically&#8221; the users in the database&#8230; if finally i do that, don´t worry , I´ll send you the mods.</p>
<p>Thanks for all!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Bieber</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43214</link>
		<dc:creator>Ron Bieber</dc:creator>
		<pubDate>Tue, 24 Jun 2008 13:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43214</guid>
		<description>Raghu,

Yep, you got me.   Thanks for pointing this out.   I have corrected it in both the post and the tarball.

Glad you found it useful.</description>
		<content:encoded><![CDATA[<p>Raghu,</p>
<p>Yep, you got me.   Thanks for pointing this out.   I have corrected it in both the post and the tarball.</p>
<p>Glad you found it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghu Prasad</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43213</link>
		<dc:creator>Raghu Prasad</dc:creator>
		<pubDate>Tue, 24 Jun 2008 12:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-43213</guid>
		<description>The content of line 60 in class.LDAPAuthenticator.php is shown to be "return($returnDN);". It should be replaced with "return($returnValue);" as variable $returnDN doesn't exist in function or global scope at that point. Seems to be a problem caused by cut/paste of code :)

Thanks for this hack. It was a useful one indeed.</description>
		<content:encoded><![CDATA[<p>The content of line 60 in class.LDAPAuthenticator.php is shown to be &#8220;return($returnDN);&#8221;. It should be replaced with &#8220;return($returnValue);&#8221; as variable $returnDN doesn&#8217;t exist in function or global scope at that point. Seems to be a problem caused by cut/paste of code <img src='http://www.bieberlabs.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for this hack. It was a useful one indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-42926</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Thu, 03 Apr 2008 21:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-42926</guid>
		<description>I also glad for the trabajo that tu did aqui.  Yo espero (hope)that Yo can use it in mi Eventum.</description>
		<content:encoded><![CDATA[<p>I also glad for the trabajo that tu did aqui.  Yo espero (hope)that Yo can use it in mi Eventum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Bieber</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-40030</link>
		<dc:creator>Ron Bieber</dc:creator>
		<pubDate>Mon, 12 Nov 2007 13:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-40030</guid>
		<description>No hay problema. Glad I podría ayudar.

(Cortesía de Google Translate)</description>
		<content:encoded><![CDATA[<p>No hay problema. Glad I podría ayudar.</p>
<p>(Cortesía de Google Translate)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Bohorquez</title>
		<link>http://www.bieberlabs.com/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-40027</link>
		<dc:creator>Nicolas Bohorquez</dc:creator>
		<pubDate>Mon, 12 Nov 2007 05:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.bieberlabs.com/wordpress/archives/2007/10/20/ldap-enabling-the-eventum-defect-tracking-system/#comment-40027</guid>
		<description>Muchisimas gracias,
es justo lo que estaba buscando.
Saludos desde Colombia</description>
		<content:encoded><![CDATA[<p>Muchisimas gracias,<br />
es justo lo que estaba buscando.<br />
Saludos desde Colombia</p>
]]></content:encoded>
	</item>
</channel>
</rss>
