summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_auth.c2
-rw-r--r--src/providers/ipa/ipa_hostid.c2
-rw-r--r--src/providers/ipa/ipa_id.c2
-rw-r--r--src/providers/ipa/ipa_selinux.c14
-rw-r--r--src/providers/ipa/ipa_subdomains.c6
5 files changed, 13 insertions, 13 deletions
diff --git a/src/providers/ipa/ipa_auth.c b/src/providers/ipa/ipa_auth.c
index b409542d..5097899f 100644
--- a/src/providers/ipa/ipa_auth.c
+++ b/src/providers/ipa/ipa_auth.c
@@ -357,7 +357,7 @@ static void ipa_migration_flag_connect_done(struct tevent_req *req)
attrs[0] = SYSDB_ORIG_DN;
attrs[1] = NULL;
- ret = sysdb_search_user_by_name(state, state->be_req->be_ctx->sysdb,
+ ret = sysdb_search_user_by_name(state, state->be_req->be_ctx->domain->sysdb,
state->be_req->be_ctx->domain,
state->pd->user, attrs, &user_msg);
if (ret != EOK) {
diff --git a/src/providers/ipa/ipa_hostid.c b/src/providers/ipa/ipa_hostid.c
index dfd3a65b..a943cdb0 100644
--- a/src/providers/ipa/ipa_hostid.c
+++ b/src/providers/ipa/ipa_hostid.c
@@ -171,7 +171,7 @@ hosts_get_send(TALLOC_CTX *memctx,
goto fail;
}
- state->sysdb = ctx->be->sysdb;
+ state->sysdb = ctx->be->domain->sysdb;
state->domain = ctx->be->domain;
state->name = name;
state->alias = alias;
diff --git a/src/providers/ipa/ipa_id.c b/src/providers/ipa/ipa_id.c
index a44874e0..82e29826 100644
--- a/src/providers/ipa/ipa_id.c
+++ b/src/providers/ipa/ipa_id.c
@@ -179,7 +179,7 @@ static struct tevent_req *ipa_id_get_netgroup_send(TALLOC_CTX *memctx,
goto fail;
}
- state->sysdb = ctx->be->sysdb;
+ state->sysdb = ctx->be->domain->sysdb;
state->domain = ctx->be->domain;
state->name = name;
state->timeout = dp_opt_get_int(ctx->opts->basic, SDAP_SEARCH_TIMEOUT);
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index 09dc075f..6c04af4a 100644
--- a/src/providers/ipa/ipa_selinux.c
+++ b/src/providers/ipa/ipa_selinux.c
@@ -183,7 +183,7 @@ static void ipa_selinux_handler_done(struct tevent_req *req)
{
struct ipa_selinux_op_ctx *op_ctx = tevent_req_callback_data(req, struct ipa_selinux_op_ctx);
struct be_req *breq = op_ctx->be_req;
- struct sysdb_ctx *sysdb = breq->be_ctx->sysdb;
+ struct sysdb_ctx *sysdb = breq->be_ctx->domain->sysdb;
errno_t ret, sret;
size_t map_count = 0;
struct sysdb_attrs **maps = NULL;
@@ -554,7 +554,7 @@ static void ipa_get_selinux_connect_done(struct tevent_req *subreq)
goto fail;
}
- subreq = ipa_host_info_send(state, bctx->ev, bctx->sysdb,
+ subreq = ipa_host_info_send(state, bctx->ev, bctx->domain->sysdb,
sdap_id_op_handle(state->op),
id_ctx->sdap_id_ctx->opts,
hostname,
@@ -595,7 +595,7 @@ ipa_get_selinux_maps_offline(struct tevent_req *req)
struct ipa_get_selinux_state);
/* read the config entry */
- ret = sysdb_search_selinux_config(state, state->be_req->be_ctx->sysdb,
+ ret = sysdb_search_selinux_config(state, state->be_req->be_ctx->domain->sysdb,
state->be_req->be_ctx->domain,
NULL, &defaults);
if (ret != EOK) {
@@ -629,7 +629,7 @@ ipa_get_selinux_maps_offline(struct tevent_req *req)
}
/* read all the SELinux rules */
- ret = sysdb_get_selinux_usermaps(state, state->be_req->be_ctx->sysdb,
+ ret = sysdb_get_selinux_usermaps(state, state->be_req->be_ctx->domain->sysdb,
state->be_req->be_ctx->domain,
attrs, &nmaps, &maps);
if (ret != EOK) {
@@ -645,7 +645,7 @@ ipa_get_selinux_maps_offline(struct tevent_req *req)
state->nmaps = nmaps;
/* read all the HBAC rules */
- ret = hbac_get_cached_rules(state, state->be_req->be_ctx->sysdb,
+ ret = hbac_get_cached_rules(state, state->be_req->be_ctx->domain->sysdb,
state->be_req->be_ctx->domain,
&state->hbac_rule_count, &state->hbac_rules);
if (ret != EOK) {
@@ -722,7 +722,7 @@ static void ipa_get_selinux_config_done(struct tevent_req *subreq)
goto done;
}
- subreq = ipa_selinux_get_maps_send(state, bctx->ev, bctx->sysdb,
+ subreq = ipa_selinux_get_maps_send(state, bctx->ev, bctx->domain->sysdb,
sdap_id_op_handle(state->op),
id_ctx->opts,
state->selinux_ctx->id_ctx->ipa_options,
@@ -793,7 +793,7 @@ static void ipa_get_selinux_maps_done(struct tevent_req *subreq)
access_name = state->be_req->be_ctx->bet_info[BET_ACCESS].mod_name;
selinux_name = state->be_req->be_ctx->bet_info[BET_SELINUX].mod_name;
if (strcasecmp(access_name, selinux_name) == 0) {
- ret = hbac_get_cached_rules(state, bctx->sysdb, bctx->domain,
+ ret = hbac_get_cached_rules(state, bctx->domain->sysdb, bctx->domain,
&state->hbac_rule_count, &state->hbac_rules);
/* Terminates the request */
goto done;
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 3a91c580..7c3ad494 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -697,7 +697,7 @@ static void ipa_subdomains_handler_done(struct tevent_req *req)
sysdb = be_req->sysdb;
domain = be_req->domain;
} else {
- sysdb = ctx->sd_ctx->be_ctx->sysdb;
+ sysdb = ctx->sd_ctx->be_ctx->domain->sysdb;
domain = ctx->sd_ctx->be_ctx->domain;
}
@@ -790,7 +790,7 @@ static void ipa_subdomains_handler_ranges_done(struct tevent_req *req)
sysdb = be_req->sysdb;
domain = be_req->domain;
} else {
- sysdb = ctx->sd_ctx->be_ctx->sysdb;
+ sysdb = ctx->sd_ctx->be_ctx->domain->sysdb;
domain = ctx->sd_ctx->be_ctx->domain;
}
@@ -893,7 +893,7 @@ 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,
+ ret = sysdb_master_domain_add_info(ctx->sd_ctx->be_ctx->domain->sysdb,
ctx->sd_ctx->be_ctx->domain,
domain_info);
goto done;