Does anyone use nscd?

Dag-Erling Smørgrav des at des.no
Tue Oct 4 18:56:39 UTC 2011


Samuel Martín Moro <faust64 at gmail.com> writes:
> Using it since a few, almost without any problem.  Just one thing:
> while connected to some external intranet, nscd still try to contact
> my LDAP.

Well, by default, nscd caches hits for an hour and misses for a minute.
One could imagine an option to have nscd return the cached entry if it
can't contact the server, even if it has technically expired, but the
problem is that nscd doesn't know what the backend is and can't reliably
tell whether the lookup failed because the server is unreachable or just
because the entry does not exist; and even if it could, it would still
have to query the backend every time, so you might still get a longish
timeout for every lookup, depending on the type of backend and the
reason it failed.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list