summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-08 01:46:11 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:03 +0100
commit0754ff886f909f0404038eb9c99dd61be1acf5b9 (patch)
tree963461ed8190287d91419f4ec4efb757fbadc49e /src/providers
parentb0fa48b0d612b46a86e45f8e4b5d9feae9784c2b (diff)
downloadsssd-0754ff886f909f0404038eb9c99dd61be1acf5b9.tar.gz
sssd-0754ff886f909f0404038eb9c99dd61be1acf5b9.tar.bz2
sssd-0754ff886f909f0404038eb9c99dd61be1acf5b9.zip
Add domain to some subdomain functions
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_subdomains.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 878b8979..3a91c580 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -782,13 +782,16 @@ static void ipa_subdomains_handler_ranges_done(struct tevent_req *req)
struct sysdb_subdom *domain_info;
struct range_info **range_list = NULL;
struct sysdb_ctx *sysdb;
+ struct sss_domain_info *domain;
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);
@@ -813,7 +816,7 @@ static void ipa_subdomains_handler_ranges_done(struct tevent_req *req)
}
- ret = sysdb_master_domain_get_info(ctx, sysdb, &domain_info);
+ ret = sysdb_master_domain_get_info(ctx, sysdb, domain, &domain_info);
if (ret != EOK) {
goto done;
}
@@ -890,7 +893,9 @@ static void ipa_subdomains_handler_master_done(struct tevent_req *req)
goto done;
}
- ret = sysdb_master_domain_add_info(ctx->sd_ctx->be_ctx->sysdb, domain_info);
+ ret = sysdb_master_domain_add_info(ctx->sd_ctx->be_ctx->sysdb,
+ ctx->sd_ctx->be_ctx->domain,
+ domain_info);
goto done;
} else {
ctx->search_base_iter++;