diff options
| author | Jakub Hrozek <jhrozek@redhat.com> | 2015-08-18 15:15:44 +0000 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-09-21 17:03:01 +0200 |
| commit | b5825c74b6bf7a99ae2172392dbecb51179013a6 (patch) | |
| tree | 54b4e9904ed901c13cccbacad5b62c0a824205df /src/providers/ipa | |
| parent | 2cec08a3174bff951c048c57b4b0e4517ad6b7b1 (diff) | |
UTIL: Convert domain->disabled into tri-state with domain states
Required for:
https://fedorahosted.org/sssd/ticket/2637
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 active, previously we only relied on
talloc_zero marking dom->disabled as false.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/ipa')
| -rw-r--r-- | src/providers/ipa/ipa_subdomains.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index b2e2fec3..089736b4 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -528,7 +528,7 @@ static errno_t ipa_subdomains_refresh(struct ipa_subdomains_ctx *ctx, if (c >= count) { /* ok this subdomain does not exist anymore, let's clean up */ - dom->disabled = true; + sss_domain_set_state(dom, DOM_DISABLED); ret = sysdb_subdomain_delete(dom->sysdb, dom->name); if (ret != EOK) { goto done; |
