Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2003 12:06:05 -0500
From:      Richard Coleman <richardcoleman@mindspring.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        kientzle@acm.org
Subject:   Re: Unfortunate dynamic linking for everything
Message-ID:  <3FBF977D.901@mindspring.com>
In-Reply-To: <200311212348.hALNmkCf010040@khavrinen.lcs.mit.edu>
References:  <200311182307.hAIN7Wpm000717@dyson.jdyson.com> <20031118164905.R35009@pooker.samsco.home> <20031119141059.GA14308@madman.celabo.org> <20031119141950.GA95734@ussenterprise.ufp.org>	<3FBEA209.20006@acm.org> <200311212348.hALNmkCf010040@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

Garrett Wollman wrote:

> You forgot:
> 
> 	* Allow statically-linked programs to use dynamic NSS modules
> 	  by forking a (dynamically-linked) resolver process when
> 	  needed.
> 
> This leads to a related, but widely disparaged option:
> 
> 	* Have a persistent NSS caching daemon with an RPC interface
> 	  that all programs can access for NSS lookups.  You might
> 	  call such a program `nscd'.  (Might as well be honest about
> 	  it.)
> 
> Both of these options may incidentally help to resolve threading
> issues in the C library (although that would not be the preferred way
> of doing so).

Regardless of how NSS is implemented, it will be useful to have some 
type of caching (even if optional).  On a large system, you can beat the 
hell out of your LDAP server otherwise.  Of course, you can use a local 
replica of your LDAP server.  But that doesn't help if are using a 
different database like Postgres as the backend for your nss/pam setup.

But if a nscd (or equivalent) is added to FreeBSD, we need to do a 
better job than the Linux nscd.  We had real problems with the Linux 
nscd in a previous project.  If I remember, it assumes that the mapping 
between username -> uid was 1-1.  We added an attribute to our LDAP 
schema so we could specify the reverse mapping in situations where more 
than one username mapped to the same uid.  But we could never get it to 
work correctly, since Linux nscd made some assumption that were 
difficult to change.

Richard Coleman
richardcoleman@mindspring.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FBF977D.901>