diff options
-rw-r--r-- | src/confdb/confdb.c | 7 | ||||
-rw-r--r-- | src/confdb/confdb.h | 2 |
2 files changed, 9 insertions, 0 deletions
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; diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h index d553beb28..5726ad5dc 100644 --- a/src/confdb/confdb.h +++ b/src/confdb/confdb.h @@ -140,6 +140,8 @@ struct sss_domain_info { bool cache_credentials; bool legacy_passwords; + uint32_t entry_cache_timeout; + struct sss_domain_info *next; }; |