<?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"
	>
<channel>
	<title>Comments on: Odd Directory Server problem</title>
	<atom:link href="http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/</link>
	<description>by Mark Mayo</description>
	<pubDate>Sun, 12 Feb 2012 01:39:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: OpenDS - YALDAPS and a look at the current playing field at VMUNIX Blues</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-34161</link>
		<dc:creator>OpenDS - YALDAPS and a look at the current playing field at VMUNIX Blues</dc:creator>
		<pubDate>Thu, 03 Aug 2006 01:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-34161</guid>
		<description>[...] If I had to summarize the differences between Netscape DS and OpenLDAP, it would be this: One is well documented, and one isn&#8217;t. In case you didn&#8217;t guess, the Netscape LDAP server is the one that&#8217;s leaps and bounds better in this regard and now that Fedora DS is out there for free, it&#8217;s the one I recommend any sysadmins starting with LDAP take a look at first. Even if you don&#8217;t deploy Fedora DS, or Red hat DS, or Sun DS (on 64-bit Solaris &#8212; stay far, far away from Sun DS on Linux or 32-bit Solaris) you need to start with the Netscape docs. Because only they actually have chapters about general concepts, systems architecture, and deployment scenarios. The OpenLDAP docs will tell you how to use OpenLDAP, but they won&#8217;t tell you how to build directory services. Which means you&#8217;ll probably give up and walk away from OpenLDAP before you make it do anything useful for you. [...]</description>
		<content:encoded><![CDATA[<p>[...] If I had to summarize the differences between Netscape DS and OpenLDAP, it would be this: One is well documented, and one isn&#8217;t. In case you didn&#8217;t guess, the Netscape LDAP server is the one that&#8217;s leaps and bounds better in this regard and now that Fedora DS is out there for free, it&#8217;s the one I recommend any sysadmins starting with LDAP take a look at first. Even if you don&#8217;t deploy Fedora DS, or Red hat DS, or Sun DS (on 64-bit Solaris &#8212; stay far, far away from Sun DS on Linux or 32-bit Solaris) you need to start with the Netscape docs. Because only they actually have chapters about general concepts, systems architecture, and deployment scenarios. The OpenLDAP docs will tell you how to use OpenLDAP, but they won&#8217;t tell you how to build directory services. Which means you&#8217;ll probably give up and walk away from OpenLDAP before you make it do anything useful for you. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8713</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Thu, 04 Aug 2005 21:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8713</guid>
		<description>Thanks for the clarification, David. I should have said "use OpenLDAP on a non-Solaris box" as a possible solution. FreeBSD and Linux, for example, don't have the stdio limitation so you wouldn't bump into the problem.

We chose to stick with Sun Directory Server on Solaris 10 (i386) and just got people to re-enter their passwords. But if I were starting from scratch again I'd probably just go OpenLDAP on Linux.</description>
		<content:encoded><![CDATA[<p>Thanks for the clarification, David. I should have said &#8220;use OpenLDAP on a non-Solaris box&#8221; as a possible solution. FreeBSD and Linux, for example, don&#8217;t have the stdio limitation so you wouldn&#8217;t bump into the problem.</p>
<p>We chose to stick with Sun Directory Server on Solaris 10 (i386) and just got people to re-enter their passwords. But if I were starting from scratch again I&#8217;d probably just go OpenLDAP on Linux.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Baldwin</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8712</link>
		<dc:creator>David Baldwin</dc:creator>
		<pubDate>Wed, 03 Aug 2005 23:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8712</guid>
		<description>OpenLDAP uses crypt() in the same circumstances and with the same limitations on my Solaris 9 box.

from man -s 3c crypt:
     The crypt() function calls crypt_gensalt(3C) to generate the
     salt.  If  the  first character of salt is "$", crypt() uses
     crypt.conf(4) to determine which shared module to  load  for
     the encryption algorithm.  If the first character of salt is
     not "$", the algorithm described on crypt_unix(5) is used.

And it can't open /etc/security/crypt.conf if it doesn't have a free file descriptor available </description>
		<content:encoded><![CDATA[<p>OpenLDAP uses crypt() in the same circumstances and with the same limitations on my Solaris 9 box.</p>
<p>from man -s 3c crypt:<br />
     The crypt() function calls crypt_gensalt(3C) to generate the<br />
     salt.  If  the  first character of salt is &#8220;$&#8221;, crypt() uses<br />
     crypt.conf(4) to determine which shared module to  load  for<br />
     the encryption algorithm.  If the first character of salt is<br />
     not &#8220;$&#8221;, the algorithm described on crypt_unix(5) is used.</p>
<p>And it can&#8217;t open /etc/security/crypt.conf if it doesn&#8217;t have a free file descriptor available</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8689</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 15 Jul 2005 18:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8689</guid>
		<description>Steve: Don't use {crypt} style password entries in your directory, basically. If you load the passwords in as {SSHA} hashes in your directory, ns-slapd doesn't have to call out to the UNIX crypt() routines in libc, so you don't hit the stdio file descriptor limit.

If you only have UNIX crypts from, say, /etc/passwd, you have to get users to re-enter their passwords. We made a simple script to do this. Painful, yes. But that's the only solution if you want to stick with Directory Server on a 32-bit system.

The other solution would be to use OpenLDAP. Or get a 64-bit Solaris box...  :(</description>
		<content:encoded><![CDATA[<p>Steve: Don&#8217;t use {crypt} style password entries in your directory, basically. If you load the passwords in as {SSHA} hashes in your directory, ns-slapd doesn&#8217;t have to call out to the UNIX crypt() routines in libc, so you don&#8217;t hit the stdio file descriptor limit.</p>
<p>If you only have UNIX crypts from, say, /etc/passwd, you have to get users to re-enter their passwords. We made a simple script to do this. Painful, yes. But that&#8217;s the only solution if you want to stick with Directory Server on a 32-bit system.</p>
<p>The other solution would be to use OpenLDAP. Or get a 64-bit Solaris box&#8230;  <img src='http://www.vmunix.com/mark/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Lee</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8688</link>
		<dc:creator>Steve Lee</dc:creator>
		<pubDate>Fri, 15 Jul 2005 17:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8688</guid>
		<description>I am currently running into the same problem you have.  What was your final solutions to this.</description>
		<content:encoded><![CDATA[<p>I am currently running into the same problem you have.  What was your final solutions to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Litchfield</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8636</link>
		<dc:creator>Jim Litchfield</dc:creator>
		<pubDate>Mon, 20 Jun 2005 14:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8636</guid>
		<description>The key is whether the LDAP server is a 32-bit app. It probably is and there is a limitation 
of 256 FDs that can be open in the stdio library for 32-bit apps. Given the error message, 
this is most likely the cause. You could harass the support people to ask the LDAP server
people to make sure that they don't have any fds in the range of 0-255 that don't use
stdio. Although that would make life easier, the real cure is to make the LDAP server 64-bit.

There were several efforts to "enhance" the 32-bit library to support more than 256
fds but these all foundered on various obscure edge cases that meant one would have to
recompile all apps and libraries that used 32-bit to be totally safe. The sticking point?
Mainly fileno() which for a very long time was a macro referencing an unsigned byte field.</description>
		<content:encoded><![CDATA[<p>The key is whether the LDAP server is a 32-bit app. It probably is and there is a limitation<br />
of 256 FDs that can be open in the stdio library for 32-bit apps. Given the error message,<br />
this is most likely the cause. You could harass the support people to ask the LDAP server<br />
people to make sure that they don&#8217;t have any fds in the range of 0-255 that don&#8217;t use<br />
stdio. Although that would make life easier, the real cure is to make the LDAP server 64-bit.</p>
<p>There were several efforts to &#8220;enhance&#8221; the 32-bit library to support more than 256<br />
fds but these all foundered on various obscure edge cases that meant one would have to<br />
recompile all apps and libraries that used 32-bit to be totally safe. The sticking point?<br />
Mainly fileno() which for a very long time was a macro referencing an unsigned byte field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8623</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 17 Jun 2005 04:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8623</guid>
		<description>Reading the tunables guide, I came across this:

Compared to rlim_fd_max. If rlim_fd_cur is greater than rlim_fd_max, rlim_fd_cur is reset to rlim_fd_max.

You might need to also increase rlim_fd_max.  Having said that, rlim_fd_max section mentions this:

A 32-bit program using standard I/O is limited to 256 file descriptors. A 64-bit program using standard I/O can use up to 2 billion descriptors. Specifically, standard I/O refers to the stdio(3C) functions in libc(3LIB).

Not sure if this is the crux of the problem but it might be since this program is running on a 32 bit system.</description>
		<content:encoded><![CDATA[<p>Reading the tunables guide, I came across this:</p>
<p>Compared to rlim_fd_max. If rlim_fd_cur is greater than rlim_fd_max, rlim_fd_cur is reset to rlim_fd_max.</p>
<p>You might need to also increase rlim_fd_max.  Having said that, rlim_fd_max section mentions this:</p>
<p>A 32-bit program using standard I/O is limited to 256 file descriptors. A 64-bit program using standard I/O can use up to 2 billion descriptors. Specifically, standard I/O refers to the stdio(3C) functions in libc(3LIB).</p>
<p>Not sure if this is the crux of the problem but it might be since this program is running on a 32 bit system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8619</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Wed, 15 Jun 2005 18:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8619</guid>
		<description>I turned nscd off after I was seeing some weirdness with it blocking some user accounts in LDAP. Weird stuff where if you do a "&lt;code&gt;getent passwd username&lt;/code&gt;" with nscd off the record shows up just fine. Turn nscd on and you get nothing back. You're correct of course that with it on I see a lot less nss traffic to the LDAP server. But I still see the problem.</description>
		<content:encoded><![CDATA[<p>I turned nscd off after I was seeing some weirdness with it blocking some user accounts in LDAP. Weird stuff where if you do a &#8220;<code>getent passwd username</code>&#8221; with nscd off the record shows up just fine. Turn nscd on and you get nothing back. You&#8217;re correct of course that with it on I see a lot less nss traffic to the LDAP server. But I still see the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathan hruby</title>
		<link>http://www.vmunix.com/mark/blog/archives/2005/06/14/odd-directory-server-problem/#comment-8618</link>
		<dc:creator>nathan hruby</dc:creator>
		<pubDate>Wed, 15 Jun 2005 14:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.vmunix.com/mark/blog/?p=366#comment-8618</guid>
		<description>Is nscd running on the linux hosts?  Probably it isn't and the LDAP conenctions are for nss_ldap doing various nss lookups over and over again (assuming of course, you have nss_ldap turned on, which I'm blindly, and possibly wrongly, assuming you do since you have pam_ldap on..)</description>
		<content:encoded><![CDATA[<p>Is nscd running on the linux hosts?  Probably it isn&#8217;t and the LDAP conenctions are for nss_ldap doing various nss lookups over and over again (assuming of course, you have nss_ldap turned on, which I&#8217;m blindly, and possibly wrongly, assuming you do since you have pam_ldap on..)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

