summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_access.c5
-rw-r--r--src/providers/ipa/ipa_access.h9
-rw-r--r--src/providers/ipa/ipa_hbac_common.c2
3 files changed, 4 insertions, 12 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index f4bdf2b9..39bbfb74 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -462,11 +462,10 @@ static void hbac_sysdb_save(struct tevent_req *req)
bool in_transaction = false;
struct hbac_ctx *hbac_ctx =
tevent_req_callback_data(req, struct hbac_ctx);
- struct sss_domain_info *domain = hbac_ctx_be(hbac_ctx)->domain;
+ struct sss_domain_info *domain = hbac_ctx->be_req->domain;
struct ldb_dn *base_dn;
- struct be_ctx *be_ctx = hbac_ctx_be(hbac_ctx);
struct ipa_access_ctx *access_ctx =
- talloc_get_type(be_ctx->bet_info[BET_ACCESS].pvt_bet_data,
+ talloc_get_type(hbac_ctx->be_req->be_ctx->bet_info[BET_ACCESS].pvt_bet_data,
struct ipa_access_ctx);
TALLOC_CTX *tmp_ctx;
diff --git a/src/providers/ipa/ipa_access.h b/src/providers/ipa/ipa_access.h
index a4bc3dc1..551a17a0 100644
--- a/src/providers/ipa/ipa_access.h
+++ b/src/providers/ipa/ipa_access.h
@@ -75,17 +75,10 @@ struct hbac_ctx {
struct sysdb_attrs **servicegroups;
};
-/* Get BE context associated with HBAC context */
-static inline struct be_ctx *hbac_ctx_be(struct hbac_ctx *hbac_ctx)
-{
- struct be_req *req = hbac_ctx != NULL ? hbac_ctx->be_req : NULL;
- return req != NULL ? req->be_ctx : NULL;
-}
-
/* Get tevent context associated with HBAC context */
static inline struct tevent_context *hbac_ctx_ev(struct hbac_ctx *hbac_ctx)
{
- struct be_ctx *be_ctx = hbac_ctx_be(hbac_ctx);
+ struct be_ctx *be_ctx = hbac_ctx->be_req->be_ctx;
return be_ctx != NULL ? be_ctx->ev : NULL;
}
diff --git a/src/providers/ipa/ipa_hbac_common.c b/src/providers/ipa/ipa_hbac_common.c
index 9742da18..ced9fb45 100644
--- a/src/providers/ipa/ipa_hbac_common.c
+++ b/src/providers/ipa/ipa_hbac_common.c
@@ -431,7 +431,7 @@ hbac_ctx_to_eval_request(TALLOC_CTX *mem_ctx,
struct pam_data *pd = hbac_ctx->pd;
TALLOC_CTX *tmp_ctx;
struct hbac_eval_req *eval_req;
- struct sss_domain_info *domain = hbac_ctx_be(hbac_ctx)->domain;
+ struct sss_domain_info *domain = hbac_ctx->be_req->domain;
const char *rhost;
const char *thost;
struct sss_domain_info *user_dom;