summaryrefslogtreecommitdiffstats
path: root/src/confdb/confdb.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-10-22 14:07:49 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-25 22:12:18 +0200
commitcd4cc8d8829f1ea5257bf874b91980368114275f (patch)
tree04a6e2be8fb2c6ff70138e56659444d38c5628f5 /src/confdb/confdb.c
parent1ce58f139699dd26b8888f4131c996263b6a80a5 (diff)
downloadsssd-cd4cc8d8829f1ea5257bf874b91980368114275f.tar.gz
sssd-cd4cc8d8829f1ea5257bf874b91980368114275f.tar.xz
sssd-cd4cc8d8829f1ea5257bf874b91980368114275f.zip
dp: make subdomains refresh interval configurable
This patch makes the refresh of available subdomains configurable. New option: subdomain_refresh_interval (undocumented) Resolves: https://fedorahosted.org/sssd/ticket/1968
Diffstat (limited to 'src/confdb/confdb.c')
-rw-r--r--src/confdb/confdb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
index 6527ede4b..c5cb0c864 100644
--- a/src/confdb/confdb.c
+++ b/src/confdb/confdb.c
@@ -1142,6 +1142,14 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
}
}
+ ret = get_entry_as_uint32(res->msgs[0], &domain->subdomain_refresh_interval,
+ CONFDB_DOMAIN_SUBDOMAIN_REFRESH, 14400);
+ if (ret != EOK || domain->subdomain_refresh_interval == 0) {
+ DEBUG(SSSDBG_FATAL_FAILURE,
+ ("Invalid value for [%s]\n", CONFDB_DOMAIN_SUBDOMAIN_REFRESH));
+ goto done;
+ }
+
*_domain = domain;
ret = EOK;
done: