From 9aa117a93e315f790a1922d9ac7bd484878b621e Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 23 May 2013 01:15:02 +0200 Subject: LDAP: Pass in a connection to ID functions Instead of using the default connection from the sdap_id_ctx, allow the caller to specify which connection shall be used for this particular request. Again, no functional change is present in this patch, just another parameter is added. --- src/providers/ldap/ldap_common.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/providers/ldap/ldap_common.h') diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h index e22bff1ed..5dfa60049 100644 --- a/src/providers/ldap/ldap_common.h +++ b/src/providers/ldap/ldap_common.h @@ -93,14 +93,16 @@ errno_t sdap_reinit_cleanup_recv(struct tevent_req *req); /* id */ void sdap_account_info_handler(struct be_req *breq); -void sdap_handle_account_info(struct be_req *breq, struct sdap_id_ctx *ctx); +void sdap_handle_account_info(struct be_req *breq, struct sdap_id_ctx *ctx, + struct sdap_id_conn_ctx *conn); int sdap_id_setup_tasks(struct sdap_id_ctx *ctx); struct tevent_req * sdap_handle_acct_req_send(TALLOC_CTX *mem_ctx, struct be_req *breq, struct be_acct_req *ar, - struct sdap_id_ctx *id_ctx); + struct sdap_id_ctx *id_ctx, + struct sdap_id_conn_ctx *conn); errno_t sdap_handle_acct_req_recv(struct tevent_req *req, int *_dp_error, const char **_err); @@ -172,15 +174,16 @@ void sdap_mark_offline(struct sdap_id_ctx *ctx); struct tevent_req *groups_get_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_id_ctx *ctx, + struct sdap_id_conn_ctx *conn, const char *name, int filter_type, int attrs_type); int groups_get_recv(struct tevent_req *req, int *dp_error_out); - struct tevent_req *ldap_netgroup_get_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_id_ctx *ctx, + struct sdap_id_conn_ctx *conn, const char *name); int ldap_netgroup_get_recv(struct tevent_req *req, int *dp_error_out); @@ -188,6 +191,7 @@ struct tevent_req * services_get_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_id_ctx *id_ctx, + struct sdap_id_conn_ctx *conn, const char *name, const char *protocol, int filter_type); -- cgit