diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-03-04 18:22:35 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-04 18:22:35 -0500 |
commit | eb4f8ab8ddd78e3b2efc6130509f035001154ba3 (patch) | |
tree | 3e2723daec1141a08a91eca1d1d32946ed682abe /server/responder/nss/nsssrv.c | |
parent | 92ebf7d739306c9e3a83af71d616f33173b19b0c (diff) | |
download | sssd-eb4f8ab8ddd78e3b2efc6130509f035001154ba3.tar.gz sssd-eb4f8ab8ddd78e3b2efc6130509f035001154ba3.tar.bz2 sssd-eb4f8ab8ddd78e3b2efc6130509f035001154ba3.zip |
Add enumeration backout period.
If an enumeration has been requested recently enough, force the
nss responder to read from the cache and not go out to each backend
and do slow network operations. This greatly improves performances
if enumerations are used often.
Currently the balcout period is harcoded to 2 min, we will need to make
it a configurable option.
Diffstat (limited to 'server/responder/nss/nsssrv.c')
-rw-r--r-- | server/responder/nss/nsssrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/responder/nss/nsssrv.c b/server/responder/nss/nsssrv.c index 7c68ba19..248b8a1e 100644 --- a/server/responder/nss/nsssrv.c +++ b/server/responder/nss/nsssrv.c @@ -471,6 +471,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx, return ret; } + nctx->expire_time = 120; /* FIXME: read from conf */ nctx->cache_timeout = 600; /* FIXME: read from conf */ DEBUG(1, ("NSS Initialization complete\n")); |