<?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: Connecting to LDAP server using OpenDS in Java</title>
	<atom:link href="http://www.markhneedham.com/blog/2008/09/29/connecting-to-ldap-server-using-opends-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2008/09/29/connecting-to-ldap-server-using-opends-in-java/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Wed, 17 Mar 2010 23:38:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Charles Oliver Nutter</title>
		<link>http://www.markhneedham.com/blog/2008/09/29/connecting-to-ldap-server-using-opends-in-java/comment-page-1/#comment-1747</link>
		<dc:creator>Charles Oliver Nutter</dc:creator>
		<pubDate>Thu, 04 Dec 2008 02:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=393#comment-1747</guid>
		<description>Missing a couple &quot;import&quot; calls there, but you get the idea. Trivially simple.</description>
		<content:encoded><![CDATA[<p>Missing a couple "import" calls there, but you get the idea. Trivially simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Oliver Nutter</title>
		<link>http://www.markhneedham.com/blog/2008/09/29/connecting-to-ldap-server-using-opends-in-java/comment-page-1/#comment-1746</link>
		<dc:creator>Charles Oliver Nutter</dc:creator>
		<pubDate>Thu, 04 Dec 2008 02:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=393#comment-1746</guid>
		<description>And here&#039;s the same code in JRuby, with no Java code required :)

import org.opends.server.admin.client.ldap.JNDIDirContextAdaptor
javax.naming.ldap.InitialLdapContext
javax.naming.Context

ctx = InitialLdapContext.new({
  Context::INITIAL_CONTEXT_FACTORY =&gt; &quot;com.sun.jndi.ldap.LdapCtxFactory&quot;,
  Context::PROVIDER_URL =&gt; &quot;ldap://localhost:389&quot;,
  Context::SECURITY_AUTHENTICATION =&gt; &quot;simple&quot;,
  Context::SECURITY_PRINCIPAL =&gt; &quot;cn=Directory Manager&quot;,
  Context::SECURITY_CREDENTIALS =&gt; &quot;password&quot;})

adaptor = JNDIDirContextAdapter.adapt(ctx)</description>
		<content:encoded><![CDATA[<p>And here's the same code in JRuby, with no Java code required <img src='http://www.markhneedham.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>import org.opends.server.admin.client.ldap.JNDIDirContextAdaptor<br />
javax.naming.ldap.InitialLdapContext<br />
javax.naming.Context</p>
<p>ctx = InitialLdapContext.new({<br />
  Context::INITIAL_CONTEXT_FACTORY =&gt; "com.sun.jndi.ldap.LdapCtxFactory",<br />
  Context::PROVIDER_URL =&gt; "ldap://localhost:389&#8243;,<br />
  Context::SECURITY_AUTHENTICATION =&gt; "simple",<br />
  Context::SECURITY_PRINCIPAL =&gt; "cn=Directory Manager",<br />
  Context::SECURITY_CREDENTIALS =&gt; "password"})</p>
<p>adaptor = JNDIDirContextAdapter.adapt(ctx)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby LDAP Options at Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2008/09/29/connecting-to-ldap-server-using-opends-in-java/comment-page-1/#comment-601</link>
		<dc:creator>Ruby LDAP Options at Mark Needham</dc:creator>
		<pubDate>Sun, 05 Oct 2008 06:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=393#comment-601</guid>
		<description>[...] I mentioned in an earlier post a colleague and I spent a few days looking at how to connect to an OpenDS LDAP server using [...]</description>
		<content:encoded><![CDATA[<p>[...] I mentioned in an earlier post a colleague and I spent a few days looking at how to connect to an OpenDS LDAP server using [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
