diff options
author | Sumit Bose <sbose@redhat.com> | 2014-09-19 10:26:01 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-16 17:55:52 +0200 |
commit | 00c283ca719717ed483958571982d0e9ff95c4b1 (patch) | |
tree | df7ee6a342a1c8ea44ba957d8053064089abeacd /src/providers/ipa/ipa_s2n_exop.c | |
parent | 7d35c7e8c5d2684321be879f7ff67816d4b31f09 (diff) | |
download | sssd-00c283ca719717ed483958571982d0e9ff95c4b1.tar.gz sssd-00c283ca719717ed483958571982d0e9ff95c4b1.tar.xz sssd-00c283ca719717ed483958571982d0e9ff95c4b1.zip |
IPA: make IPA ID context available to extdom client code
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_s2n_exop.c')
-rw-r--r-- | src/providers/ipa/ipa_s2n_exop.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c index 0d5c35678..6f5fac337 100644 --- a/src/providers/ipa/ipa_s2n_exop.c +++ b/src/providers/ipa/ipa_s2n_exop.c @@ -874,6 +874,7 @@ done: struct ipa_s2n_get_groups_state { struct tevent_context *ev; + struct ipa_id_ctx *ipa_ctx; struct sss_domain_info *dom; struct sdap_handle *sh; struct req_input req_input; @@ -887,6 +888,7 @@ static void ipa_s2n_get_groups_next(struct tevent_req *subreq); static struct tevent_req *ipa_s2n_get_groups_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct ipa_id_ctx *ipa_ctx, struct sss_domain_info *dom, struct sdap_handle *sh, int exop_timeout, @@ -902,6 +904,7 @@ static struct tevent_req *ipa_s2n_get_groups_send(TALLOC_CTX *mem_ctx, } state->ev = ev; + state->ipa_ctx = ipa_ctx; state->dom = dom; state->sh = sh; state->group_list = group_list; @@ -1034,6 +1037,7 @@ static int ipa_s2n_get_groups_recv(struct tevent_req *req) struct ipa_s2n_get_user_state { struct tevent_context *ev; + struct ipa_id_ctx *ipa_ctx; struct sdap_options *opts; struct sss_domain_info *dom; struct sdap_handle *sh; @@ -1049,6 +1053,7 @@ static void ipa_s2n_get_user_done(struct tevent_req *subreq); struct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct ipa_id_ctx *ipa_ctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sdap_handle *sh, @@ -1068,6 +1073,7 @@ struct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx, } state->ev = ev; + state->ipa_ctx = ipa_ctx; state->opts = opts; state->dom = dom; state->sh = sh; @@ -1322,7 +1328,8 @@ static void ipa_s2n_get_user_done(struct tevent_req *subreq) } if (missing_groups != NULL) { - subreq = ipa_s2n_get_groups_send(state, state->ev, state->dom, + subreq = ipa_s2n_get_groups_send(state, state->ev, + state->ipa_ctx, state->dom, state->sh, state->exop_timeout, missing_groups); if (subreq == NULL) { |