<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Ruby and ActiveDirectory, Sitting in a Tree</title>
	<atom:link href="http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/feed/" rel="self" type="application/rss+xml" />
	<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/</link>
	<description>lukewarmtapioca.com</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:27:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: George</title>
		<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/#comment-95</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 04 Nov 2005 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree#comment-95</guid>
		<description>It is possible to connect using the login name.

Bind using:

conn.bind(&#039;login_name@voltaiccommerce.com&#039;, &#039;password&#039;)</description>
		<content:encoded><![CDATA[<p>It is possible to connect using the login name.</p>
<p>Bind using:</p>
<p>conn.bind(&#8216;login_name@voltaiccommerce.com&#8217;, &#8216;password&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kitesurfer</title>
		<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/#comment-96</link>
		<dc:creator>kitesurfer</dc:creator>
		<pubDate>Fri, 04 Nov 2005 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree#comment-96</guid>
		<description>No problem. This is a smaller version of the real thing. It&#039;s pretty much the same as the one you showed in your blog. However enough to toast fcgi on that box...We are connecting to Netcape LDAP from a linux box, with the latest ruby-ldap and openldap installed. Pretty bleak docs and suppport out there to resolve this kind of stuff. Looks like the ruby-ldap project might be dead. Yikes !!

#!/usr/local/bin/ruby

require &#039;ldap&#039;

def print_entry(entry)
   puts &quot;&gt;&gt;&gt;&gt; Entry #{entry.to_s} #{entry.class}&quot;
    entry.each_key { &#124;k&#124; puts &quot;Key: #{k} --&gt; #{entry[k]}&quot; }
end

ldap_conn = LDAP::Conn.new(&#039;fred.blee.com&#039;, 389)
ldap_conn.bind{
  i = 0
  ldap_conn.search2(&#039;cn=bozo,ou=Fred Groups,o=blee.com&#039;, LDAP::LDAP_SCOPE_SUBTREE,
                   &#039;(cn=*)&#039;){&#124;entry&#124;
    i += 1
    print_entry(entry)
  }
}</description>
		<content:encoded><![CDATA[<p>No problem. This is a smaller version of the real thing. It&#8217;s pretty much the same as the one you showed in your blog. However enough to toast fcgi on that box&#8230;We are connecting to Netcape LDAP from a linux box, with the latest ruby-ldap and openldap installed. Pretty bleak docs and suppport out there to resolve this kind of stuff. Looks like the ruby-ldap project might be dead. Yikes !!</p>
<p>#!/usr/local/bin/ruby</p>
<p>require &#8216;ldap&#8217;</p>
<p>def print_entry(entry)<br />
   puts &quot;&gt;&gt;&gt;&gt; Entry #{entry.to_s} #{entry.class}&quot;<br />
    entry.each_key { |k| puts &quot;Key: #{k} &#8211;&gt; #{entry[k]}&quot; }<br />
end</p>
<p>ldap_conn = LDAP::Conn.new(&#8216;fred.blee.com&#8217;, 389)<br />
ldap_conn.bind{<br />
  i = 0<br />
  ldap_conn.search2(&#8216;cn=bozo,ou=Fred Groups,o=blee.com&#8217;, LDAP::LDAP_SCOPE_SUBTREE,<br />
                   &#8216;(cn=*)&#8217;){|entry|<br />
    i += 1<br />
    print_entry(entry)<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Britt</title>
		<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/#comment-97</link>
		<dc:creator>Britt</dc:creator>
		<pubDate>Fri, 04 Nov 2005 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree#comment-97</guid>
		<description>This was running beautifully with Apache2+fcgi until very recently. I am now receiving errors regarding connection to the LDAP server, and I haven&#039;t had a chance to dig into it yet. I&#039;d love to see how you&#039;ve composed your script (the connection portion), if you don&#039;t mind emailing a copy.</description>
		<content:encoded><![CDATA[<p>This was running beautifully with Apache2+fcgi until very recently. I am now receiving errors regarding connection to the LDAP server, and I haven&#8217;t had a chance to dig into it yet. I&#8217;d love to see how you&#8217;ve composed your script (the connection portion), if you don&#8217;t mind emailing a copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kitesurfer</title>
		<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/#comment-98</link>
		<dc:creator>kitesurfer</dc:creator>
		<pubDate>Fri, 04 Nov 2005 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree#comment-98</guid>
		<description>Hi,

  Thanks for taking the time to blog about this. Good stuff !! Now have you had a chance to try running this script using a rails app ? We are trying to lookup some entries in ldap using ruby-ldap and our scripts work great from the cmd line, however when we run within apache2 + fcgi we get the following error:

ruby: error.c:264: ldap_parse_result: Assertion `( (ld)-&gt;ld_options.ldo_valid == 0x2 )&#039; failed.

Any Ideas ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>  Thanks for taking the time to blog about this. Good stuff !! Now have you had a chance to try running this script using a rails app ? We are trying to lookup some entries in ldap using ruby-ldap and our scripts work great from the cmd line, however when we run within apache2 + fcgi we get the following error:</p>
<p>ruby: error.c:264: ldap_parse_result: Assertion `( (ld)-&gt;ld_options.ldo_valid == 0&#215;2 )&#8217; failed.</p>
<p>Any Ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jens</title>
		<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/#comment-99</link>
		<dc:creator>jens</dc:creator>
		<pubDate>Fri, 04 Nov 2005 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree#comment-99</guid>
		<description>Neat! well written little guide!</description>
		<content:encoded><![CDATA[<p>Neat! well written little guide!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Smith</title>
		<link>http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree/#comment-100</link>
		<dc:creator>Ryan Smith</dc:creator>
		<pubDate>Fri, 04 Nov 2005 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lukewarmtapioca.com/2005/11/04/ruby-and-activedirectory-sitting-in-a-tree#comment-100</guid>
		<description>How would you go about adding a user to the LDAP. i assume using

ldap_conn.add() ?</description>
		<content:encoded><![CDATA[<p>How would you go about adding a user to the LDAP. i assume using</p>
<p>ldap_conn.add() ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
