diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-08-18 15:15:44 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-09-01 14:06:29 +0200 |
commit | 13e1628e34e4b4bc2320a87dd5ac888c70a63ddd (patch) | |
tree | 03c045531e44bdea2c15d9159f0b9252826b9062 /src/confdb/confdb.c | |
parent | 3954cd07dae78bf79136f0854472757d1ed26897 (diff) | |
download | sssd-13e1628e34e4b4bc2320a87dd5ac888c70a63ddd.tar.gz sssd-13e1628e34e4b4bc2320a87dd5ac888c70a63ddd.tar.xz sssd-13e1628e34e4b4bc2320a87dd5ac888c70a63ddd.zip |
UTIL: Convert domain->disabled into tri-state with domain states
This is a first step towards making it possible for domain to be around,
but not contacted by Data Provider.
Also explicitly create domains as enabled, previously we only relied on
talloc_zero marking dom->disabled as false.
Diffstat (limited to 'src/confdb/confdb.c')
-rw-r--r-- | src/confdb/confdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 3a8a1c01b..a207ce3ba 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -1342,6 +1342,8 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, domain->has_views = false; domain->view_name = NULL; + domain->state = DOM_ENABLED; + *_domain = domain; ret = EOK; done: |