Does anyone use nscd?

Trond Endrestøl Trond.Endrestol at
Thu Oct 6 01:05:34 UTC 2011

On Wed, 5 Oct 2011 12:54+1030, Daniel O'Connor wrote:

> On 05/10/2011, at 2:30, Michel Talon wrote:
> > Des wrote:
> >> Does anyone actually use nscd?
> > 
> > I am using it since a lot of time. I have not experienced annoying bugs
> > in all that time. The last time i have been hit is when installing some
> > new softs which require adding some user and some group with pw. Of
> > course this doesn't work well with caching these data, and i had
> > completely forgotten i was using a cache. This is very perplexing.
> In my experience ncsd seems to cache negative hits forever, 
> regardless of the setting for negative-time-to-live.

I'm glad to see I'm not the only one who has noticed this odd 
behaviour of nscd. Shame on me for not speaking up sooner, but I 
feared I might be proved wrong (again), and yes, that's a lame excuse. 

> If I am installing ports which create a new user or group I have to 
> restart nscd. I also find if openldap dies (not infrequent) I have 
> to restart nscd after restarting openldap..

After bulk loading ~250 students into our LDAP (Novell eDirectory) 
each fall, and deleting the graduated students, I restart nscd on our 
servers just to make sure the caches doesn't contain any negative 
results. Maybe I should set up a cron job to restart nscd once a day 
until the source code is cleaned up.


Trond Endrestøl                  | Trond.Endrestol at
ACM, NAS, NUUG, SAGE, USENIX     |    FreeBSD 8.2-STABLE & Alpine 2.00

More information about the freebsd-hackers mailing list