From c14184c07634801cda7864aa17c6fa8dc9ab43d1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 8 Jan 2013 13:45:55 -0500 Subject: Move mpg flag to the domain where it belongs A sysdb contains now multiple domains, but the mpg property is a property of a specific domain not of the underlying database. --- src/confdb/confdb.c | 3 +++ src/confdb/confdb.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src/confdb') diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 600d423d..00643cd3 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -859,6 +859,9 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, ret = EINVAL; goto done; } + + /* The LOCAL provider use always Magic Private Groups */ + domain->mpg = true; } domain->timeout = ldb_msg_find_attr_as_int(res->msgs[0], diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h index eb16d01e..81323dda 100644 --- a/src/confdb/confdb.h +++ b/src/confdb/confdb.h @@ -201,6 +201,7 @@ struct sss_domain_info { int timeout; bool enumerate; bool fqnames; + bool mpg; bool ignore_group_members; uint32_t id_min; uint32_t id_max; -- cgit