summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_subdomains.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 10:39:30 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:49:20 +0100
commit1e6f2180724de4722a5218826c9401181168d9d4 (patch)
treee81c1e8290adeca27722cefe5c24edc3f04f90a3 /src/providers/ipa/ipa_subdomains.c
parent234958be042980242fff6da936af674da877c5ef (diff)
downloadsssd-1e6f2180724de4722a5218826c9401181168d9d4.tar.gz
sssd-1e6f2180724de4722a5218826c9401181168d9d4.tar.bz2
sssd-1e6f2180724de4722a5218826c9401181168d9d4.zip
Remove the sysdb_ctx_get_domain() function.
We are deprecating sysdb->domain so kill the function that gives access to this member as we should stop relying on it being available (or correct).
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.c')
-rw-r--r--src/providers/ipa/ipa_subdomains.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 0bf2e5d8..878b8979 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -688,14 +688,17 @@ static void ipa_subdomains_handler_done(struct tevent_req *req)
struct ipa_subdomains_req_ctx *ctx;
struct be_req *be_req;
struct sysdb_ctx *sysdb;
+ struct sss_domain_info *domain;
bool refresh_has_changes = false;
ctx = tevent_req_callback_data(req, struct ipa_subdomains_req_ctx);
be_req = ctx->be_req;
if (be_req && be_req->sysdb) {
sysdb = be_req->sysdb;
+ domain = be_req->domain;
} else {
sysdb = ctx->sd_ctx->be_ctx->sysdb;
+ domain = ctx->sd_ctx->be_ctx->domain;
}
ret = sdap_get_generic_recv(req, ctx, &reply_count, &reply);
@@ -740,7 +743,7 @@ static void ipa_subdomains_handler_done(struct tevent_req *req)
goto done;
}
- ret = ipa_subdomains_write_mappings(sysdb_ctx_get_domain(sysdb),
+ ret = ipa_subdomains_write_mappings(domain,
ctx->sd_ctx->num_subdoms,
ctx->sd_ctx->subdoms);
if (ret != EOK) {