From d94c1a6b8badd8e4cf94815ad14ce6c0c715e9d3 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Sun, 19 Sep 2010 10:49:29 -0400 Subject: Store entry_cache_timeout in sss_domain_info object This is useful so that the NSS responder can identify an domain's entry timeout for expiring the memory cache for a lookup such as with netgroups. --- src/confdb/confdb.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/confdb/confdb.c') diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 1277e99c5..4975a4276 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -835,6 +835,13 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, goto done; } + ret = get_entry_as_uint32(res->msgs[0], &domain->entry_cache_timeout, + CONFDB_DOMAIN_ENTRY_CACHE_TIMEOUT, 5400); + if (ret != EOK) { + DEBUG(0, ("Invalid value for [%s]\n", CONFDB_DOMAIN_ENTRY_CACHE_TIMEOUT)); + goto done; + } + *_domain = domain; ret = EOK; -- cgit