From 9822d4d468ec74e4e173f5adf0db12d02974cd18 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 28 Jun 2013 10:21:57 +0200 Subject: Read mpg state for subdomains from cache The mpg flag will be read from the cache for subdomains and the domain object will be created accordingly. --- src/util/domain_info_utils.c | 5 +++-- src/util/util.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/util') diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c index ff7a7396..6553927c 100644 --- a/src/util/domain_info_utils.c +++ b/src/util/domain_info_utils.c @@ -75,7 +75,8 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx, const char *name, const char *realm, const char *flat_name, - const char *id) + const char *id, + bool mpg) { struct sss_domain_info *dom; @@ -133,7 +134,7 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx, dom->enumerate = false; dom->fqnames = true; - dom->mpg = true; + dom->mpg = mpg; /* FIXME: get ranges from the server */ dom->id_min = 0; dom->id_max = 0xffffffff; diff --git a/src/util/util.h b/src/util/util.h index f66f57b8..5acc67be 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -562,7 +562,8 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx, const char *name, const char *realm, const char *flat_name, - const char *id); + const char *id, + bool mpg); errno_t sssd_domain_init(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, -- cgit