From c4f19342a55bbbaa09e126013b8976cb2dd31b94 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 14 Oct 2009 17:42:28 +0200 Subject: make sdap_id_connect_* independent of sdap_id_ctx The sdap_id_connect_* request tries to bind to an LDAP server with the default credentials. Only the opts component of the sdap_id_ctx context is used. A new request sdap_cli_connect_* is created which expects only the opts pointer as parameter and not the whole context. This makes it reusable by other providers. --- server/providers/ldap/sdap_async.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/providers/ldap/sdap_async.h') diff --git a/server/providers/ldap/sdap_async.h b/server/providers/ldap/sdap_async.h index b79960a50..8fab8eb6e 100644 --- a/server/providers/ldap/sdap_async.h +++ b/server/providers/ldap/sdap_async.h @@ -89,3 +89,9 @@ struct tevent_req *sdap_exop_modify_passwd_send(TALLOC_CTX *memctx, char *password, char *new_password); int sdap_exop_modify_passwd_recv(struct tevent_req *req, enum sdap_result *result); + +struct tevent_req *sdap_cli_connect_send(TALLOC_CTX *memctx, + struct tevent_context *ev, + struct sdap_options *opts); +int sdap_cli_connect_recv(struct tevent_req *req, TALLOC_CTX *memctx, + struct sdap_handle **gsh); -- cgit