<?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: Simple LDAP Login 1.3 for Wordpress</title>
	<atom:link href="http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/</link>
	<description>A low carb salad featuring healthy portions of politics, humor, and nerdery.</description>
	<lastBuildDate>Wed, 10 Mar 2010 09:33:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: unicast</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-2/#comment-2372</link>
		<dc:creator>unicast</dc:creator>
		<pubDate>Thu, 04 Mar 2010 10:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2372</guid>
		<description>Hi! I&#039;m tryin to authenticate via LDAP and got some troubles with my LDAP-tree with many ou-containers.
In example, i have containers ou=dev,ou=users,dc=examble and dc=com, ou=test,ou=users,dc=examble,dc=com
BASE_DN ou=users,dc=examble,dc=com
And authentication fails...
Here is small patch:

					case &quot;directory_ol&quot;:
						//OpenLDAP create all 
						$ldap = ldap_connect(LDAP_HOST, LDAP_PORT) 
							or die(&quot;Can&#039;t connect to LDAP server.&quot;);
						ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION);
						$ureturn=@ldap_search($ldap, BASE_DN, &#039;(&#039; . LOGIN . &#039;=&#039; . $username . &#039;)&#039;, array(LOGIN, &#039;sn&#039;, &#039;givenname&#039;, &#039;mail&#039;));
						$uent=@ldap_first_entry($ldap, $ureturn);
						$bn=@ldap_get_dn($ldap, $uent);
						$ldapbind = @ldap_bind($ldap, $bn, $password);
						if ($ldapbind == true) 

			case &quot;directory_ol&quot;:
					//OpenLDAP create based on group
					$ldap = ldap_connect(LDAP_HOST, LDAP_PORT) 
						or die(&quot;Can&#039;t connect to LDAP server.&quot;);
					ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION);
					$ureturn=@ldap_search($ldap, BASE_DN, &#039;(&#039; . LOGIN . &#039;=&#039; . $username . &#039;)&#039;, array(LOGIN, &#039;sn&#039;, &#039;givenname&#039;, &#039;mail&#039;));
					$uent=@ldap_first_entry($ldap, $ureturn);
					$bn=@ldap_get_dn($ldap, $uent);
					$ldapbind = @ldap_bind($ldap, $bn, $password);
					//$ldapbind = @ldap_bind($ldap, LOGIN .&#039;=&#039; . $username . &#039;,&#039; . BASE_DN, $password);
					if ($ldapbind == true)</description>
		<content:encoded><![CDATA[<p>Hi! I&#8217;m tryin to authenticate via LDAP and got some troubles with my LDAP-tree with many ou-containers.<br />
In example, i have containers ou=dev,ou=users,dc=examble and dc=com, ou=test,ou=users,dc=examble,dc=com<br />
BASE_DN ou=users,dc=examble,dc=com<br />
And authentication fails&#8230;<br />
Here is small patch:</p>
<p>					case &#8220;directory_ol&#8221;:<br />
						//OpenLDAP create all<br />
						$ldap = ldap_connect(LDAP_HOST, LDAP_PORT)<br />
							or die(&#8220;Can&#8217;t connect to LDAP server.&#8221;);<br />
						ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION);<br />
						$ureturn=@ldap_search($ldap, BASE_DN, &#8216;(&#8216; . LOGIN . &#8216;=&#8217; . $username . &#8216;)&#8217;, array(LOGIN, &#8217;sn&#8217;, &#8216;givenname&#8217;, &#8216;mail&#8217;));<br />
						$uent=@ldap_first_entry($ldap, $ureturn);<br />
						$bn=@ldap_get_dn($ldap, $uent);<br />
						$ldapbind = @ldap_bind($ldap, $bn, $password);<br />
						if ($ldapbind == true) </p>
<p>			case &#8220;directory_ol&#8221;:<br />
					//OpenLDAP create based on group<br />
					$ldap = ldap_connect(LDAP_HOST, LDAP_PORT)<br />
						or die(&#8220;Can&#8217;t connect to LDAP server.&#8221;);<br />
					ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION);<br />
					$ureturn=@ldap_search($ldap, BASE_DN, &#8216;(&#8216; . LOGIN . &#8216;=&#8217; . $username . &#8216;)&#8217;, array(LOGIN, &#8217;sn&#8217;, &#8216;givenname&#8217;, &#8216;mail&#8217;));<br />
					$uent=@ldap_first_entry($ldap, $ureturn);<br />
					$bn=@ldap_get_dn($ldap, $uent);<br />
					$ldapbind = @ldap_bind($ldap, $bn, $password);<br />
					//$ldapbind = @ldap_bind($ldap, LOGIN .&#8217;=&#8217; . $username . &#8216;,&#8217; . BASE_DN, $password);<br />
					if ($ldapbind == true)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clifton Griffin</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-2/#comment-2365</link>
		<dc:creator>Clifton Griffin</dc:creator>
		<pubDate>Tue, 23 Feb 2010 13:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2365</guid>
		<description>You placed it in the mu-plugins folder?</description>
		<content:encoded><![CDATA[<p>You placed it in the mu-plugins folder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-2/#comment-2364</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Tue, 23 Feb 2010 04:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2364</guid>
		<description>I am using Version 1.3.0.3, and have a problem when new blogs get created, the LDAP configuration is empty, and it has to be manually configured. The problem arises when the user needs to login from the blog’s own login page, it does not recognize the LDAP credentials, and gives me an “Incorrect password error”.

The plugin is activated site-wide, and still does not work</description>
		<content:encoded><![CDATA[<p>I am using Version 1.3.0.3, and have a problem when new blogs get created, the LDAP configuration is empty, and it has to be manually configured. The problem arises when the user needs to login from the blog’s own login page, it does not recognize the LDAP credentials, and gives me an “Incorrect password error”.</p>
<p>The plugin is activated site-wide, and still does not work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clifton Griffin</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2363</link>
		<dc:creator>Clifton Griffin</dc:creator>
		<pubDate>Mon, 22 Feb 2010 19:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2363</guid>
		<description>It seems to me that even if an installation is configured so it doesn&#039;t need to bind to read group information, you would still be able to bind to read group information.</description>
		<content:encoded><![CDATA[<p>It seems to me that even if an installation is configured so it doesn&#8217;t need to bind to read group information, you would still be able to bind to read group information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2362</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Mon, 22 Feb 2010 19:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2362</guid>
		<description>I think it is default behavior in a Windows domain.  I first thought it would bind using the user login also, but that wasn&#039;t the case. At least I couldn&#039;t get it to work. I got a clue when a vendor setting up a different Linux application needed a bind login for there app to do the same. Thx.</description>
		<content:encoded><![CDATA[<p>I think it is default behavior in a Windows domain.  I first thought it would bind using the user login also, but that wasn&#8217;t the case. At least I couldn&#8217;t get it to work. I got a clue when a vendor setting up a different Linux application needed a bind login for there app to do the same. Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clifton Griffin</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2361</link>
		<dc:creator>Clifton Griffin</dc:creator>
		<pubDate>Mon, 22 Feb 2010 18:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2361</guid>
		<description>A bind user wouldn&#039;t matter for simple authentication. If you&#039;re using group membership, it will try to bind with the user that&#039;s logging in (I think).

Is your directory configured to prevent this? (I can&#039;t imagine why this would be true...just asking)</description>
		<content:encoded><![CDATA[<p>A bind user wouldn&#8217;t matter for simple authentication. If you&#8217;re using group membership, it will try to bind with the user that&#8217;s logging in (I think).</p>
<p>Is your directory configured to prevent this? (I can&#8217;t imagine why this would be true&#8230;just asking)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clifton Griffin</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2360</link>
		<dc:creator>Clifton Griffin</dc:creator>
		<pubDate>Mon, 22 Feb 2010 18:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2360</guid>
		<description>Are all of the users in basically the same Forest/Tree/OU structure?

Or do you have users that are located at the same level in the directory that one works and the other doesn&#039;t?</description>
		<content:encoded><![CDATA[<p>Are all of the users in basically the same Forest/Tree/OU structure?</p>
<p>Or do you have users that are located at the same level in the directory that one works and the other doesn&#8217;t?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clifton Griffin</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2359</link>
		<dc:creator>Clifton Griffin</dc:creator>
		<pubDate>Mon, 22 Feb 2010 18:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2359</guid>
		<description>Yes.

Installing php-ldap would be preferable.</description>
		<content:encoded><![CDATA[<p>Yes.</p>
<p>Installing php-ldap would be preferable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2358</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Mon, 22 Feb 2010 17:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2358</guid>
		<description>This wouldn&#039;t work for our Active Directory because it does not use a Bind User for authenticating to AD. If this does not work for you you should try the Active Directory plugin, I did get it to work.</description>
		<content:encoded><![CDATA[<p>This wouldn&#8217;t work for our Active Directory because it does not use a Bind User for authenticating to AD. If this does not work for you you should try the Active Directory plugin, I did get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://clifgriffin.com/2009/05/13/simple-ldap-login-13-for-wordpress/comment-page-1/#comment-2357</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://clifgriffin.com/?p=921#comment-2357</guid>
		<description>Oh, I forgot to mention.  I am not limiting access to any specifc AD group.  If you can authenticate to AD, it should create the account in Wordpress and allow the person in.</description>
		<content:encoded><![CDATA[<p>Oh, I forgot to mention.  I am not limiting access to any specifc AD group.  If you can authenticate to AD, it should create the account in Wordpress and allow the person in.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
