diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-12-19 14:59:59 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-19 11:38:35 -0500 |
commit | 8edf0e447266d68f10264eb3f3ea514cd1687041 (patch) | |
tree | 8f2c21f5346a0cfba1162165962638a64c3983f6 /src/providers/ipa | |
parent | 69420a154fc9fb8b04f437125a6a0604b26b1292 (diff) | |
download | sssd-8edf0e447266d68f10264eb3f3ea514cd1687041.tar.gz sssd-8edf0e447266d68f10264eb3f3ea514cd1687041.tar.bz2 sssd-8edf0e447266d68f10264eb3f3ea514cd1687041.zip |
Pass sdap_id_ctx to online check from IPA provider
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_id.c | 10 | ||||
-rw-r--r-- | src/providers/ipa/ipa_id.h | 3 | ||||
-rw-r--r-- | src/providers/ipa/ipa_init.c | 2 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_id.c b/src/providers/ipa/ipa_id.c index a014c9f2..7302a8da 100644 --- a/src/providers/ipa/ipa_id.c +++ b/src/providers/ipa/ipa_id.c @@ -321,3 +321,13 @@ static void ipa_account_info_netgroups_done(struct tevent_req *req) ipa_account_info_complete(breq, dp_error, ret, "Netgroup lookup failed"); } + +void ipa_check_online(struct be_req *be_req) +{ + struct ipa_id_ctx *ipa_ctx; + + ipa_ctx = talloc_get_type(be_req->be_ctx->bet_info[BET_ID].pvt_bet_data, + struct ipa_id_ctx); + + return sdap_do_online_check(be_req, ipa_ctx->sdap_id_ctx); +} diff --git a/src/providers/ipa/ipa_id.h b/src/providers/ipa/ipa_id.h index aa2dfe7f..04a6c2b8 100644 --- a/src/providers/ipa/ipa_id.h +++ b/src/providers/ipa/ipa_id.h @@ -45,4 +45,7 @@ int ipa_get_netgroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, size_t *reply_count, struct sysdb_attrs ***reply); + +void ipa_check_online(struct be_req *be_req); + #endif diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index 9acee7bf..e16a9533 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -41,7 +41,7 @@ struct ipa_options *ipa_options = NULL; struct bet_ops ipa_id_ops = { .handler = ipa_account_info_handler, .finalize = NULL, - .check_online = sdap_check_online + .check_online = ipa_check_online }; struct bet_ops ipa_auth_ops = { |