diff options
author | Sumit Bose <sbose@redhat.com> | 2013-06-28 10:21:57 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-28 20:20:59 +0200 |
commit | 9822d4d468ec74e4e173f5adf0db12d02974cd18 (patch) | |
tree | 9b686c8f2ac873fff81593dae7d141ea5607b66f /src/util | |
parent | 09d7c105839bfc7447ea0f766413ed86675ca075 (diff) | |
download | sssd-9822d4d468ec74e4e173f5adf0db12d02974cd18.tar.gz sssd-9822d4d468ec74e4e173f5adf0db12d02974cd18.tar.bz2 sssd-9822d4d468ec74e4e173f5adf0db12d02974cd18.zip |
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.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/domain_info_utils.c | 5 | ||||
-rw-r--r-- | src/util/util.h | 3 |
2 files changed, 5 insertions, 3 deletions
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, |