Skip to content

Commit

Permalink
ipa: delete content of disabled domains
Browse files Browse the repository at this point in the history
Related to https://pagure.io/SSSD/sssd/issue/4078

Reviewed-by: Pavel Březina <pbrezina@redhat.com>
  • Loading branch information
sumit-bose authored and pbrezina committed Sep 20, 2019
1 parent b12e7a4 commit fa3e53b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/providers/ipa/ipa_subdomains.c
Expand Up @@ -821,6 +821,13 @@ static errno_t ipa_subdomains_check_domain_state(struct sss_domain_info *dom,
DEBUG(SSSDBG_OP_FAILURE, "sysdb_domain_set_enabled failed.\n");
return ret;
}

ret = sysdb_subdomain_content_delete(dom->sysdb, dom->name);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE,
"sysdb_subdomain_content_delete failed.\n");
return ret;
}
}
} else {
/* enabled domain if it was disabled */
Expand Down

0 comments on commit fa3e53b

Please sign in to comment.