summaryrefslogtreecommitdiff
path: root/server/responder/nss/nsssrv.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-03-04 18:22:35 -0500
committerSimo Sorce <ssorce@redhat.com>2009-03-04 18:22:35 -0500
commiteb4f8ab8ddd78e3b2efc6130509f035001154ba3 (patch)
tree3e2723daec1141a08a91eca1d1d32946ed682abe /server/responder/nss/nsssrv.h
parent92ebf7d739306c9e3a83af71d616f33173b19b0c (diff)
downloadsssd-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.h')
-rw-r--r--server/responder/nss/nsssrv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/responder/nss/nsssrv.h b/server/responder/nss/nsssrv.h
index 1431dded..e08d8d29 100644
--- a/server/responder/nss/nsssrv.h
+++ b/server/responder/nss/nsssrv.h
@@ -64,6 +64,10 @@ struct nss_ctx {
int cache_timeout;
+ int expire_time;
+ time_t last_user_enum;
+ time_t last_group_enum;
+
struct sbus_method *sss_sbus_methods;
struct sss_cmd_table *sss_cmds;
const char *sss_pipe_name;