summaryrefslogtreecommitdiff
path: root/src/providers/dp_backend.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-02-22 11:01:38 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-19 21:47:30 +0100
commit7619be9f6bf649665fcbeee9e6b120f9f9cba2a5 (patch)
treeff1684f0d1712598255dfdc51c5c00e424816e77 /src/providers/dp_backend.h
parentba4378f49914e65a7d687a872d9b938173841154 (diff)
downloadsssd-7619be9f6bf649665fcbeee9e6b120f9f9cba2a5.tar.gz
sssd-7619be9f6bf649665fcbeee9e6b120f9f9cba2a5.tar.bz2
sssd-7619be9f6bf649665fcbeee9e6b120f9f9cba2a5.zip
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.
Diffstat (limited to 'src/providers/dp_backend.h')
-rw-r--r--src/providers/dp_backend.h14
1 files changed, 14 insertions, 0 deletions
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___ */