<?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: LDAP Pass-through Authentication with Authlogic and ActiveLdap</title>
	<atom:link href="http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/</link>
	<description>Enrico on programming, living, and everything in between</description>
	<lastBuildDate>Fri, 25 Nov 2011 22:02:19 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Enrico</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-4249</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Thu, 30 Sep 2010 16:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-4249</guid>
		<description>Funny you should mention Alfresco; I used to work with it a bit for an old gig. If the Alfresco groups are available through the same LDAP interface that the users are, you shouldn&#039;t have too much trouble. Just set up the appropriate mappings for groups through ActiveLdap. I have a &lt;a href=&quot;http://www.liveandcode.com/2009/12/14/ldap-based-rbac-with-activeldap-and-declarative_authorization/&quot; title=&quot;LDAP-based RBAC with ActiveLdap and declarative_authorization&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt; about this, in case you haven&#039;t already seen it.</description>
		<content:encoded><![CDATA[<p>Funny you should mention Alfresco; I used to work with it a bit for an old gig. If the Alfresco groups are available through the same LDAP interface that the users are, you shouldn&#8217;t have too much trouble. Just set up the appropriate mappings for groups through ActiveLdap. I have a <a href="http://www.liveandcode.com/2009/12/14/ldap-based-rbac-with-activeldap-and-declarative_authorization/" title="LDAP-based RBAC with ActiveLdap and declarative_authorization" rel="nofollow">post</a> about this, in case you haven&#8217;t already seen it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Roberts</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-4248</link>
		<dc:creator>Guy Roberts</dc:creator>
		<pubDate>Thu, 30 Sep 2010 16:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-4248</guid>
		<description>Good stuff,  this was just what I needed to use Alfresco to do authentication for with authlogic.

Now all I have to do is figure out how to get declarative_authorization to play with Alfresco&#039;s groups.

Thanks.</description>
		<content:encoded><![CDATA[<p>Good stuff,  this was just what I needed to use Alfresco to do authentication for with authlogic.</p>
<p>Now all I have to do is figure out how to get declarative_authorization to play with Alfresco&#8217;s groups.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-3685</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Wed, 11 Aug 2010 01:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-3685</guid>
		<description>@GW: Yes, that&#039;s actually broken by design. I didn&#039;t remove the action or view because I wanted to change as little of the existing code as possible, but the idea behind the example code is that you never create users through the UsersController. You create them using your own LDAP admin tools and then users can log in using their LDAP credentials. When that happens, a User entry is created in the database. The database entry is really just for storing metadata, like the &quot;magic columns&quot; that Authlogic provides.

With a little more work, you can create a form that creates an LDAPUser and saves it to the LDAP (independently of Authlogic).</description>
		<content:encoded><![CDATA[<p>@GW: Yes, that&#8217;s actually broken by design. I didn&#8217;t remove the action or view because I wanted to change as little of the existing code as possible, but the idea behind the example code is that you never create users through the UsersController. You create them using your own LDAP admin tools and then users can log in using their LDAP credentials. When that happens, a User entry is created in the database. The database entry is really just for storing metadata, like the &#8220;magic columns&#8221; that Authlogic provides.</p>
<p>With a little more work, you can create a form that creates an LDAPUser and saves it to the LDAP (independently of Authlogic).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GW</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-3683</link>
		<dc:creator>GW</dc:creator>
		<pubDate>Wed, 11 Aug 2010 00:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-3683</guid>
		<description>I had trouble with the example code. It turned out, you cannot have password_confirmation field in
view (for example, app/views/users/new.html.erb) if you set validate_password_field = false in the user model. You will get an undefined method error for password_confirmation when it tries to render the page. 

I am using rail 2.3.4 and authlogic 2.1.6 gem installation.</description>
		<content:encoded><![CDATA[<p>I had trouble with the example code. It turned out, you cannot have password_confirmation field in<br />
view (for example, app/views/users/new.html.erb) if you set validate_password_field = false in the user model. You will get an undefined method error for password_confirmation when it tries to render the page. </p>
<p>I am using rail 2.3.4 and authlogic 2.1.6 gem installation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-1626</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Tue, 08 Dec 2009 21:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-1626</guid>
		<description>@Ademola: I have little experience with OpenDS and I&#039;m not sure what the nature of your errors are based on your description. If you still need help with this, send me an e-mail and I&#039;ll see what I can do.

@Javier: I don&#039;t think that&#039;s possible with the method that I&#039;m using because I&#039;m overriding the mechanism by which Authlogic validates the username and password as opposed to providing an entirely different (parallel) method of authentication like Authlogic plugins do.

@Adam: Yeah, at the time I wrote the post, 1.0.9 was the latest version. Now I&#039;m using 1.2.0 and gettext_activerecord does work for me, but I&#039;m not using formtastic. You might also be interested in seeing how I integrated it all with declarative_authorization to get RBAC through LDAP groups: http://github.com/enricob/authlogic_example/tree/ldap-rbac</description>
		<content:encoded><![CDATA[<p>@Ademola: I have little experience with OpenDS and I&#8217;m not sure what the nature of your errors are based on your description. If you still need help with this, send me an e-mail and I&#8217;ll see what I can do.</p>
<p>@Javier: I don&#8217;t think that&#8217;s possible with the method that I&#8217;m using because I&#8217;m overriding the mechanism by which Authlogic validates the username and password as opposed to providing an entirely different (parallel) method of authentication like Authlogic plugins do.</p>
<p>@Adam: Yeah, at the time I wrote the post, 1.0.9 was the latest version. Now I&#8217;m using 1.2.0 and gettext_activerecord does work for me, but I&#8217;m not using formtastic. You might also be interested in seeing how I integrated it all with declarative_authorization to get RBAC through LDAP groups: <a href="http://github.com/enricob/authlogic_example/tree/ldap-rbac" rel="nofollow">http://github.com/enricob/authlogic_example/tree/ldap-rbac</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Durity</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-1625</link>
		<dc:creator>Adam Durity</dc:creator>
		<pubDate>Tue, 08 Dec 2009 20:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-1625</guid>
		<description>Best Rails + Authlogic + LDAP solution I&#039;ve found.  Thanks for the post.  I did find that I needed to use ActiveLdap version 1.0.9, because in 1.1.0+ they added gettext_activerecord which didn&#039;t work for me.  This may be because of my use of formtastic.

Thanks for the post.</description>
		<content:encoded><![CDATA[<p>Best Rails + Authlogic + LDAP solution I&#8217;ve found.  Thanks for the post.  I did find that I needed to use ActiveLdap version 1.0.9, because in 1.1.0+ they added gettext_activerecord which didn&#8217;t work for me.  This may be because of my use of formtastic.</p>
<p>Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-1573</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-1573</guid>
		<description>Hi! I&#039;m need two diferents forms to authenticate. Firts without ldap, second within ldap. Any idea?</description>
		<content:encoded><![CDATA[<p>Hi! I&#8217;m need two diferents forms to authenticate. Firts without ldap, second within ldap. Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ademola</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-1503</link>
		<dc:creator>Ademola</dc:creator>
		<pubDate>Sun, 29 Nov 2009 14:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-1503</guid>
		<description>Hi,

I am having a problem with getting any return value from &quot;LdapUser.all&quot;. I am using OpenDS and intend to authenticate against users in a group in it. Any help with OpenDS would really help.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am having a problem with getting any return value from &#8220;LdapUser.all&#8221;. I am using OpenDS and intend to authenticate against users in a group in it. Any help with OpenDS would really help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-694</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-694</guid>
		<description>@maxjgon: Yeah, the 0.0.5 &lt;code&gt;net-ldap&lt;/code&gt; gem needs to be built from the GitHub repository. If you want to try using 0.0.4 (which might work depending on your particular schema), you actually want to use the command below.

&lt;code&gt;sudo gem install ruby-net-ldap&lt;/code&gt;

And change your &lt;code&gt;config.gem&lt;/code&gt; line in &lt;code&gt;config/environment.rb&lt;/code&gt; accordingly. Turns out the RubyForge-released gem is called &lt;code&gt;ruby-net-ldap&lt;/code&gt; while the GitHub-built one is called &lt;code&gt;net-ldap&lt;/code&gt;. This threw me for a bit of a loop.

If you need more help with this, fire me an e-mail and I&#039;ll try and help you out as much as I can.</description>
		<content:encoded><![CDATA[<p>@maxjgon: Yeah, the 0.0.5 <code>net-ldap</code> gem needs to be built from the GitHub repository. If you want to try using 0.0.4 (which might work depending on your particular schema), you actually want to use the command below.</p>
<p><code>sudo gem install ruby-net-ldap</code></p>
<p>And change your <code>config.gem</code> line in <code>config/environment.rb</code> accordingly. Turns out the RubyForge-released gem is called <code>ruby-net-ldap</code> while the GitHub-built one is called <code>net-ldap</code>. This threw me for a bit of a loop.</p>
<p>If you need more help with this, fire me an e-mail and I&#8217;ll try and help you out as much as I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maxjgon</title>
		<link>http://www.liveandcode.com/2009/08/30/ldap-pass-through-authentication-with-authlogic-and-activeldap/comment-page-1/#comment-693</link>
		<dc:creator>maxjgon</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.liveandcode.com/?p=195#comment-693</guid>
		<description>To put:
config.gem &quot;net-ldap&quot;, :lib =&gt; false, :version =&gt; &#039;&gt;=0.0.5&#039;
fails, but when y try to do:
Net::LDAP.new it works.

And when i try to
sudo gem install net-ldap for the 0.0.4 version it said:
ERROR:  could not find gem net-ldap locally or in a repository

Only i try to declare in my config.gem that is needed net-ldap 0.0.5 version.</description>
		<content:encoded><![CDATA[<p>To put:<br />
config.gem &#8220;net-ldap&#8221;, :lib =&gt; false, :version =&gt; &#8216;&gt;=0.0.5&#8242;<br />
fails, but when y try to do:<br />
Net::LDAP.new it works.</p>
<p>And when i try to<br />
sudo gem install net-ldap for the 0.0.4 version it said:<br />
ERROR:  could not find gem net-ldap locally or in a repository</p>
<p>Only i try to declare in my config.gem that is needed net-ldap 0.0.5 version.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

