<?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: Ruby on Rails HTTP Basic Auth with LDAP</title>
	<atom:link href="http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/</link>
	<description>Made in Northern California</description>
	<lastBuildDate>Tue, 19 Jan 2010 16:12:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fred</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-260</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Fri, 15 May 2009 02:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-260</guid>
		<description>94man:
@point_person = PointPerson.find_by_username(username) is where we get the user to check against.  You will want to replace this with your own user model.</description>
		<content:encoded><![CDATA[<p>94man:<br />
@point_person = PointPerson.find_by_username(username) is where we get the user to check against.  You will want to replace this with your own user model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 94man</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-259</link>
		<dc:creator>94man</dc:creator>
		<pubDate>Tue, 12 May 2009 15:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-259</guid>
		<description>Thank you for share this code...

I&#039;m having the following error:

uninitialized constant ApplicationController::PointPerson

at -&gt;     @point_person = PointPerson.find_by_username(username)

What can i do to solve it?</description>
		<content:encoded><![CDATA[<p>Thank you for share this code&#8230;</p>
<p>I&#8217;m having the following error:</p>
<p>uninitialized constant ApplicationController::PointPerson</p>
<p>at -&gt;     @point_person = PointPerson.find_by_username(username)</p>
<p>What can i do to solve it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-258</link>
		<dc:creator>Juan</dc:creator>
		<pubDate>Mon, 11 May 2009 20:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-258</guid>
		<description>Patrick:

Thank you for your reply. I downloaded a little java app JXplorer to try to connect using my credentials, after changing the order of the cn property I was able to connect:

The proper order was:

ldap.auth &#039;cn=&#039; + username + &#039;,ou=active,ou=employees,ou=users,o=my_o&#039;, password

Thank you again for the code and the reply. It is a success.</description>
		<content:encoded><![CDATA[<p>Patrick:</p>
<p>Thank you for your reply. I downloaded a little java app JXplorer to try to connect using my credentials, after changing the order of the cn property I was able to connect:</p>
<p>The proper order was:</p>
<p>ldap.auth &#8216;cn=&#8217; + username + &#8216;,ou=active,ou=employees,ou=users,o=my_o&#8217;, password</p>
<p>Thank you again for the code and the reply. It is a success.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-207</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 01 May 2009 16:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-207</guid>
		<description>@Juan A few possibilities:
(1) You have not yet configured any users yet. Some LDAP records may be configured in such a way that only specific users can access the record (instead of binding anonymously). You may need to at least create a &quot;manager&quot; account as described in the OpenLDAP manual.
(2) The authentication mechanism used is incorrect. Say SASL is expected but you have used simple (password-based) authentication.</description>
		<content:encoded><![CDATA[<p>@Juan A few possibilities:<br />
(1) You have not yet configured any users yet. Some LDAP records may be configured in such a way that only specific users can access the record (instead of binding anonymously). You may need to at least create a &#8220;manager&#8221; account as described in the OpenLDAP manual.<br />
(2) The authentication mechanism used is incorrect. Say SASL is expected but you have used simple (password-based) authentication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-201</link>
		<dc:creator>Juan</dc:creator>
		<pubDate>Thu, 30 Apr 2009 14:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-201</guid>
		<description>Thank you for sharing this. I&#039;m a beginner on Rails, so please understand if this is stupid.

I&#039;m getting a &quot;Invalid Credentials&quot; message. Any idea?

Thanks</description>
		<content:encoded><![CDATA[<p>Thank you for sharing this. I&#8217;m a beginner on Rails, so please understand if this is stupid.</p>
<p>I&#8217;m getting a &#8220;Invalid Credentials&#8221; message. Any idea?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-118</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Thu, 09 Apr 2009 21:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-118</guid>
		<description>Good catch @gary. I&#039;ve updated the code.</description>
		<content:encoded><![CDATA[<p>Good catch @gary. I&#8217;ve updated the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-116</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Thu, 09 Apr 2009 19:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-116</guid>
		<description>@gary is right just a typo on my code. dohp</description>
		<content:encoded><![CDATA[<p>@gary is right just a typo on my code. dohp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gary</title>
		<link>http://rollsteady.net/blog/ruby-on-rails-http-basic-auth-with-ldap/comment-page-1/#comment-63</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Sun, 04 Jan 2009 09:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://rollsteady.net/blog/?p=144#comment-63</guid>
		<description>I&#039;m not very good at this, but it seems your LDAPBASE could be:

LDAPBASE = &#039;,ou=active...&quot;

or your ldap.auth should be:

ldap.auth &#039;uid=&#039; + username + &#039;,&#039; +LDAPBASE

Of course, if works for you, maybe I&#039;m wrong, but it seems you would get:

uid=ldap-uidou=active, ou=employee, ou=people, o=host.com

(no comma between ldap-uid and ou=active) with this example.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not very good at this, but it seems your LDAPBASE could be:</p>
<p>LDAPBASE = &#8216;,ou=active&#8230;&#8221;</p>
<p>or your ldap.auth should be:</p>
<p>ldap.auth &#8216;uid=&#8217; + username + &#8216;,&#8217; +LDAPBASE</p>
<p>Of course, if works for you, maybe I&#8217;m wrong, but it seems you would get:</p>
<p>uid=ldap-uidou=active, ou=employee, ou=people, o=host.com</p>
<p>(no comma between ldap-uid and ou=active) with this example.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
