freebsd-skq/usr.sbin/nscd
Stefan Eßer a397989d4e Add the possibility to specify a threshold for the number of negative cache
results required to have the cache return lookup failure.

A new configuration parameter is introduced, which must be set to a value
greater than 1 to activate this feature. The default behavior is unchanged.

The purpose of this change is to allow probes for the existence of an entry
(which are expected to fail), before that entry is added to one of the
queried databases, without the cache returning the stale information from
the probe query until that cache entry expires. If, for example, a new user
account is created after checking that the new account name is available,
the negative cache entry would prevent immediate access to the account.

For that example, the new configuration option

negative-confidence-threshold passwd 2

will require a second negative query result to consider the negative cache
entry for a passwd entry valid, but if the user account has been created
between the queries, then the positive query result from the second query
will be cached and returned.
2012-07-04 09:02:12 +00:00
..
agents Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
agent.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
agent.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
cachelib.c Add the possibility to specify a threshold for the number of negative cache 2012-07-04 09:02:12 +00:00
cachelib.h Add the possibility to specify a threshold for the number of negative cache 2012-07-04 09:02:12 +00:00
cacheplcs.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
cacheplcs.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
config.c Add the possibility to specify a threshold for the number of negative cache 2012-07-04 09:02:12 +00:00
config.h Add the possibility to specify a threshold for the number of negative cache 2012-07-04 09:02:12 +00:00
debug.c Further #include cleanup. 2009-06-13 00:43:56 +00:00
debug.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
hashtable.h Wrap some macros that needed wrapping. 2009-06-13 13:54:03 +00:00
log.c Further #include cleanup. 2009-06-13 00:43:56 +00:00
log.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
Makefile nscd builds cleanly at WARNS level 3. 2009-06-13 01:23:34 +00:00
mp_rs_query.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
mp_rs_query.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
mp_ws_query.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
mp_ws_query.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
nscd.8 mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
nscd.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
nscd.conf.5 Add the possibility to specify a threshold for the number of negative cache 2012-07-04 09:02:12 +00:00
nscdcli.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
nscdcli.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
parser.c Add the possibility to specify a threshold for the number of negative cache 2012-07-04 09:02:12 +00:00
parser.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
protocol.c Further #include cleanup. 2009-06-13 00:43:56 +00:00
protocol.h Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
query.c Remove casts from {c,m,re}alloc() and simplify sizeof(). 2009-06-13 13:07:56 +00:00
query.h Remove "extern" from function prototypes, and fix some (but not all) 2009-06-13 14:12:55 +00:00
singletons.c #include cleanup 2009-06-13 00:06:52 +00:00
singletons.h