From e523233315f44b8f77ab9c5143a3d80364ebf955 Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Thu, 23 Aug 2012 11:12:45 +0200 Subject: AD context was set to null due to type mismatch --- src/providers/ad/ad_id.c | 11 +++++++++++ src/providers/ad/ad_id.h | 2 ++ src/providers/ad/ad_init.c | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/providers') diff --git a/src/providers/ad/ad_id.c b/src/providers/ad/ad_id.c index 41510b245..311c8096c 100644 --- a/src/providers/ad/ad_id.c +++ b/src/providers/ad/ad_id.c @@ -35,3 +35,14 @@ ad_account_info_handler(struct be_req *breq) return sdap_handle_account_info(breq, sdap_id_ctx); } + +void +ad_check_online(struct be_req *be_req) +{ + struct ad_id_ctx *ad_ctx; + + ad_ctx = talloc_get_type(be_req->be_ctx->bet_info[BET_ID].pvt_bet_data, + struct ad_id_ctx); + + return sdap_do_online_check(be_req, ad_ctx->sdap_id_ctx); +} diff --git a/src/providers/ad/ad_id.h b/src/providers/ad/ad_id.h index 7f480aab7..47fc3b33b 100644 --- a/src/providers/ad/ad_id.h +++ b/src/providers/ad/ad_id.h @@ -26,4 +26,6 @@ void ad_account_info_handler(struct be_req *breq); +void +ad_check_online(struct be_req *be_req); #endif /* AD_ID_H_ */ diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index d08312526..2add74a20 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -44,7 +44,7 @@ ad_shutdown(struct be_req *req); struct bet_ops ad_id_ops = { .handler = ad_account_info_handler, .finalize = ad_shutdown, - .check_online = sdap_check_online + .check_online = ad_check_online }; struct bet_ops ad_auth_ops = { -- cgit