nscd not caching

O. Hartmann ohartman at zedat.fu-berlin.de
Sun Aug 17 13:25:32 UTC 2014


Am Sun, 17 Aug 2014 13:09:10 +0000
"Eggert, Lars" <lars at netapp.com> schrieb:

> Nobody using nscd? Really?

I can only speak for myself and I stopped using nscd since the support is crap.

A while ago (t > 1 1/2 years) I realised within a OpenLDAP environment, that when nscd is
running, sometimes the system simple "forgets" about root - this is painful while
installing/updating ports and getting interrupted with a weird error "unknown user root".

nscd is supposed to be used in large environments where the cost for a user lookup, like
in OpenLDAP, is worse. But obviously FreeBSD isn't used in that large environments with
OpenLDAP and I'm wondering what the purpose of nscd is.
> 
> On 2014-8-14, at 13:26, Eggert, Lars <lars at netapp.com> wrote:
> 
> > [Resending to current@, since I can't get it to work on -CURRENT either.]
> > 
> > Hi,
> > 
> > anyone have an idea why nscd would not be caching NIS lookups?
> > 
> > My nsswitch.conf looks as follows:
> > 
> > group: cache files nis
> > hosts: cache files dns
> > networks: cache files
> > passwd: cache files nis
> > shells: files
> > services: cache files nis
> > protocols: cache files
> > rpc: cache files
> > 
> > nisdomain is set and ypbind is started, and I see lots of NIS traffic going in and
> > out.
> > 
> > But nothing is cached; running nscd with -t just prints this and then then nothing,
> > ever:
> > 
> > M1 from main: successfully daemonized
> > M1 from main: request agents registered successfully
> > M2 from cache: cache was successfully initialized
> > M2 from runtime environment: using socket /var/run/nscd
> > M2 from runtime environment: successfully initialized
> > M1 from main: thread #0 was successfully created
> > M1 from main: thread #1 was successfully created
> > M1 from main: thread #2 was successfully created
> > M1 from main: thread #3 was successfully created
> > M1 from main: thread #4 was successfully created
> > M1 from main: thread #5 was successfully created
> > M1 from main: thread #6 was successfully created
> > M1 from main: thread #7 was successfully created
> > 
> > Lars
> > 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140817/7aeddb39/attachment.sig>


More information about the freebsd-current mailing list