<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LdapAuth component for CakePHP</title>
	<atom:link href="http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/</link>
	<description>If I have seen a little further it is by standing on the shoulders of Giants. - Newton</description>
	<lastBuildDate>Sat, 28 Jan 2012 23:17:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: analogrithems</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1207</link>
		<dc:creator>analogrithems</dc:creator>
		<pubDate>Thu, 30 Jun 2011 05:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1207</guid>
		<description>It looks like you may be using a very old version of the datasource.  Please see http://www.analogrithems.com/rant/2011/06/29/ldapauth-for-cakephp-revised/  The datasource has been pickedup by cakephp now and has a lot of changes.  It&#039;s now packed into a plugin with lots of examples to use.

-Analog</description>
		<content:encoded><![CDATA[<p>It looks like you may be using a very old version of the datasource.  Please see <a href="http://www.analogrithems.com/rant/2011/06/29/ldapauth-for-cakephp-revised/" rel="nofollow">http://www.analogrithems.com/rant/2011/06/29/ldapauth-for-cakephp-revised/</a>  The datasource has been pickedup by cakephp now and has a lot of changes.  It&#8217;s now packed into a plugin with lots of examples to use.</p>
<p>-Analog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chung</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1203</link>
		<dc:creator>Chung</dc:creator>
		<pubDate>Mon, 27 Jun 2011 19:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1203</guid>
		<description>I kept on getting these errors and nothing comes back when I do /people/view/jsmith. Please help. Thanks a lot.

Warning (2): ldap_count_entries(): supplied argument is not a valid ldap result resource [APP\models\datasources\ldap_source.php, line 573]

Notice (8): Undefined variable: schema_entries [APP\models\datasources\ldap_source.php, line 598]

Notice (8): Undefined variable: return [APP\models\datasources\ldap_source.php, line 702]

Warning (2): ksort() expects parameter 1 to be array, null given [APP\models\datasources\ldap_source.php, line 1216]

Warning (2): Cannot modify header information - headers already sent by (output started at C:\Users\jsmith\Documents\wamp\www\test_app\cake\libs\debugger.php:673) [CORE\cake\libs\controller\controller.php, line 746]</description>
		<content:encoded><![CDATA[<p>I kept on getting these errors and nothing comes back when I do /people/view/jsmith. Please help. Thanks a lot.</p>
<p>Warning (2): ldap_count_entries(): supplied argument is not a valid ldap result resource [APP\models\datasources\ldap_source.php, line 573]</p>
<p>Notice (8): Undefined variable: schema_entries [APP\models\datasources\ldap_source.php, line 598]</p>
<p>Notice (8): Undefined variable: return [APP\models\datasources\ldap_source.php, line 702]</p>
<p>Warning (2): ksort() expects parameter 1 to be array, null given [APP\models\datasources\ldap_source.php, line 1216]</p>
<p>Warning (2): Cannot modify header information &#8211; headers already sent by (output started at C:\Users\jsmith\Documents\wamp\www\test_app\cake\libs\debugger.php:673) [CORE\cake\libs\controller\controller.php, line 746]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1181</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 16 Jun 2011 19:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1181</guid>
		<description>Just downloaded your source code and reading through it (slowly).  Thank you for this!!</description>
		<content:encoded><![CDATA[<p>Just downloaded your source code and reading through it (slowly).  Thank you for this!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabien</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1081</link>
		<dc:creator>Fabien</dc:creator>
		<pubDate>Wed, 29 Dec 2010 14:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1081</guid>
		<description>Thanks you for this great work.

It&#039;s work great with Mac OS X Server OpenLDAP.
I just have one bug in ldap_source.php on line 573. I&#039;ve changed :
if(ldap_count_entries($this-&gt;database, $check) &gt; 0){
Into
if($check &amp;&amp; ldap_count_entries($this-&gt;database, $check) &gt; 0){
because $check was false in my case.

And to be compatible with ARO table (for ACL), i&#039;ve changed uid into uidnumber in User model.</description>
		<content:encoded><![CDATA[<p>Thanks you for this great work.</p>
<p>It&#8217;s work great with Mac OS X Server OpenLDAP.<br />
I just have one bug in ldap_source.php on line 573. I&#8217;ve changed :<br />
if(ldap_count_entries($this-&gt;database, $check) &gt; 0){<br />
Into<br />
if($check &amp;&amp; ldap_count_entries($this-&gt;database, $check) &gt; 0){<br />
because $check was false in my case.</p>
<p>And to be compatible with ARO table (for ACL), i&#8217;ve changed uid into uidnumber in User model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1058</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 01 Jun 2010 14:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1058</guid>
		<description>I&#039;m trying to use your ldap_auth (which is pretty slick, by the way)...but I&#039;m having a problem in which the ldap lookup is getting sent a full array instead of the username during login, resulting in a login failure.  I&#039;m not sure how that&#039;s happening, but could use some help</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use your ldap_auth (which is pretty slick, by the way)&#8230;but I&#8217;m having a problem in which the ldap lookup is getting sent a full array instead of the username during login, resulting in a login failure.  I&#8217;m not sure how that&#8217;s happening, but could use some help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: analogrithems</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1051</link>
		<dc:creator>analogrithems</dc:creator>
		<pubDate>Sun, 23 May 2010 18:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1051</guid>
		<description>I added a new attribute that needs to be added to the database config,  Here is my database.php  This is to make the datasource work with different ldap servers operational attributes and know how to find the schemas that exists in different locations between them.

vi config/core.php
&lt;pre&gt;
&lt;?php
 class DATABASE_CONFIG {
        //This will be used for extensions/plugins.  if you plugin needs a db, define it here.
        var $default = array(
                &#039;driver&#039; =&gt; &#039;mysql&#039;,
                &#039;persistent&#039; =&gt; false,
                &#039;host&#039; =&gt; &#039;localhost&#039;,
                &#039;login&#039; =&gt; &#039;user&#039;,
                &#039;password&#039; =&gt; &#039;password&#039;,
                &#039;database&#039; =&gt; &#039;database_name&#039;,
                &#039;prefix&#039; =&gt; &#039;&#039;,
        );
        var $ldap = array (
                &#039;datasource&#039; =&gt; &#039;ldap&#039;,
                &#039;host&#039; =&gt; &#039;localhost&#039;,
                &#039;port&#039; =&gt; 389,
                &#039;basedn&#039; =&gt; &#039;dc=analogrithems,dc=com&#039;,
                &#039;login&#039; =&gt; &#039;&#039;,     //For Proxy Userdn
                &#039;password&#039; =&gt; &#039;&#039;,  //For Proxy UserDN password
                &#039;database&#039; =&gt; &#039;&#039;,  //Needed to prevent cakePHP from throwing errors about database missing
                &#039;tls&#039; =&gt; &#039;&#039;, //Set this to true if using tls
                &#039;type&#039; =&gt; &#039;Netscape&#039;, //Type Can be either &#039;Netscape&#039;, &#039;OpenLDAP&#039;, &#039;ActiveDirectory&#039;
                &#039;version&#039; =&gt; 3 //LDAP Version 3
         );
 }
?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I added a new attribute that needs to be added to the database config,  Here is my database.php  This is to make the datasource work with different ldap servers operational attributes and know how to find the schemas that exists in different locations between them.</p>
<p>vi config/core.php</p>
<pre>
< ?php
 class DATABASE_CONFIG {
        //This will be used for extensions/plugins.  if you plugin needs a db, define it here.
        var $default = array(
                'driver' => 'mysql',
                'persistent' => false,
                'host' => 'localhost',
                'login' => 'user',
                'password' => 'password',
                'database' => 'database_name',
                'prefix' => '',
        );
        var $ldap = array (
                'datasource' => 'ldap',
                'host' => 'localhost',
                'port' => 389,
                'basedn' => 'dc=analogrithems,dc=com',
                'login' => '',     //For Proxy Userdn
                'password' => '',  //For Proxy UserDN password
                'database' => '',  //Needed to prevent cakePHP from throwing errors about database missing
                'tls' => '', //Set this to true if using tls
                'type' => 'Netscape', //Type Can be either 'Netscape', 'OpenLDAP', 'ActiveDirectory'
                'version' => 3 //LDAP Version 3
         );
 }
?>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Traynor</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1047</link>
		<dc:creator>Sean Traynor</dc:creator>
		<pubDate>Fri, 14 May 2010 14:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1047</guid>
		<description>Hi Analogrithems,

Firstly - thank you for this article and all of your efforts towards CakePHP&#039;s LDAP integration!

I am having issues however. If I use the ldap_source listed in the article LDAP is properly queried however I have the issues above with blank output without debug and header already sent with debug on.

With the latest version of ldap_source on github I recieve the message &quot;-1: Can&#039;t contact LDAP server&quot; - even though it works with the older version of ldap_source! Are there any changes that need to be made to the LdapAuth component to make it compatible with the latest version of the ldap_source datasource?

Many thanks!
Sean</description>
		<content:encoded><![CDATA[<p>Hi Analogrithems,</p>
<p>Firstly &#8211; thank you for this article and all of your efforts towards CakePHP&#8217;s LDAP integration!</p>
<p>I am having issues however. If I use the ldap_source listed in the article LDAP is properly queried however I have the issues above with blank output without debug and header already sent with debug on.</p>
<p>With the latest version of ldap_source on github I recieve the message &#8220;-1: Can&#8217;t contact LDAP server&#8221; &#8211; even though it works with the older version of ldap_source! Are there any changes that need to be made to the LdapAuth component to make it compatible with the latest version of the ldap_source datasource?</p>
<p>Many thanks!<br />
Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-1016</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 03 Mar 2010 22:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-1016</guid>
		<description>You may want to consider adding the following to your component so that the Auth examples from the book still work as described.

  /**
   * Initialize method ensures Auth methods remain working as described in the book.
   */
  function initialize(&amp;$controller) {
      parent::initialize($controller);
      $controller-&gt;Auth =&amp; $this;
  }

Now every reference to $this-&gt;Auth is still valid.</description>
		<content:encoded><![CDATA[<p>You may want to consider adding the following to your component so that the Auth examples from the book still work as described.</p>
<p>  /**<br />
   * Initialize method ensures Auth methods remain working as described in the book.<br />
   */<br />
  function initialize(&amp;$controller) {<br />
      parent::initialize($controller);<br />
      $controller-&gt;Auth =&amp; $this;<br />
  }</p>
<p>Now every reference to $this-&gt;Auth is still valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit Peters</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-983</link>
		<dc:creator>Kit Peters</dc:creator>
		<pubDate>Mon, 16 Nov 2009 23:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-983</guid>
		<description>it&#039;s worth noting that the call to __getLDAPSchema() will fail if you bind anonymously to an Active Directory 2003 server (see http://serverfault.com/questions/10208/disable-requiring-authentication-to-bind-in-active-directory).  You can turn this behavior off in AD, but if you don&#039;t have access to the AD configuration, you&#039;ll have to do a bind with a username/password.</description>
		<content:encoded><![CDATA[<p>it&#8217;s worth noting that the call to __getLDAPSchema() will fail if you bind anonymously to an Active Directory 2003 server (see <a href="http://serverfault.com/questions/10208/disable-requiring-authentication-to-bind-in-active-directory" rel="nofollow">http://serverfault.com/questions/10208/disable-requiring-authentication-to-bind-in-active-directory</a>).  You can turn this behavior off in AD, but if you don&#8217;t have access to the AD configuration, you&#8217;ll have to do a bind with a username/password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: analogrithems</title>
		<link>http://www.analogrithems.com/rant/2009/06/13/ldapauth-component-for-cakephp/#comment-975</link>
		<dc:creator>analogrithems</dc:creator>
		<pubDate>Tue, 13 Oct 2009 00:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=40#comment-975</guid>
		<description>in the getDN function did you have to change the call to look for an attribute besides uid?  I recall windows uses something different like userPrincipal.  Can you post your code changes so i can make this component more universal?</description>
		<content:encoded><![CDATA[<p>in the getDN function did you have to change the call to look for an attribute besides uid?  I recall windows uses something different like userPrincipal.  Can you post your code changes so i can make this component more universal?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic

Served from: www.analogrithems.com @ 2012-02-05 02:28:31 -->
