Bug#365676: nscd: restart should cause a cache refresh
Package: nscd
Version: 2.3.6-7
Severity: minor
I noticed that nscd had cached an old copy of an LDAP group which we had
recently changed. After a few minutes of bad results I ran
'/etc/init.d/nscd restart' in the hope that it would cause nscd to
invalidate its cache but this didn't work. 'ncsd --invalidate group' did
- but it feels like the restart should have either simply purged the
cache or resulted in a background revalidation.
The TTL logic also seems to be a little imprecise - the group ttl is
listed as 600 seconds (nscd --statistics) but it was closer to 15
minutes before all of the clients I was testing with had updated.
(All testing was conducted using 'getent group')
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (650, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages nscd depends on:
ii libc6 2.3.6-7 GNU C Library: Shared libraries
nscd recommends no packages.
-- no debconf information
Reply to: