summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2012-08-23 11:12:45 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-23 14:25:23 +0200
commite523233315f44b8f77ab9c5143a3d80364ebf955 (patch)
tree538ae6bc8b521b72e2e489115f6a959c9a889602
parent67ef63cc88230e13a15cb9e5485340469c4bcc3e (diff)
downloadsssd-e523233315f44b8f77ab9c5143a3d80364ebf955.tar.gz
sssd-e523233315f44b8f77ab9c5143a3d80364ebf955.tar.bz2
sssd-e523233315f44b8f77ab9c5143a3d80364ebf955.zip
AD context was set to null due to type mismatch
-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 = {