summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/ad/ad_id.c11
-rw-r--r--src/providers/ad/ad_id.h2
-rw-r--r--src/providers/ad/ad_init.c2
3 files changed, 14 insertions, 1 deletions
diff --git a/src/providers/ad/ad_id.c b/src/providers/ad/ad_id.c
index 41510b24..311c8096 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 7f480aab..47fc3b33 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 d0831252..2add74a2 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 = {