From 7619be9f6bf649665fcbeee9e6b120f9f9cba2a5 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 22 Feb 2013 11:01:38 +0100 Subject: Provide a be_get_account_info_send function In order to resolve group names in the simple access provider we need to contact the Data Provider in a generic fashion from the access provider. We can't call any particular implementation (like sdap_generic_send()) because we have no idea what kind of provider is configured as the id_provider. This patch splits introduces the be_file_account_request() function into the data_provider_be module and makes it public. A future patch should make the be_get_account_info function use the be_get_account_info_send function. --- src/providers/dp_backend.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/providers/dp_backend.h') diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h index 28fb4a22..1a546a85 100644 --- a/src/providers/dp_backend.h +++ b/src/providers/dp_backend.h @@ -249,4 +249,18 @@ void *be_req_get_data(struct be_req *be_req); void be_req_terminate(struct be_req *be_req, int dp_err_type, int errnum, const char *errstr); +/* Request account information */ +struct tevent_req * +be_get_account_info_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct be_client *becli, + struct be_ctx *be_ctx, + struct be_acct_req *ar); + +errno_t be_get_account_info_recv(struct tevent_req *req, + TALLOC_CTX *mem_ctx, + int *_err_maj, + int *_err_min, + const char **_err_msg); + #endif /* __DP_BACKEND_H___ */ -- cgit