diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-02-22 11:01:38 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-15 15:15:26 +0200 |
commit | 93515fb9b024efa897dc1442f4641b4a917e649d (patch) | |
tree | d180817e1ef2ef0343ccf519a4910ff6b60d782d /src/providers/dp_backend.h | |
parent | 3a19ea73ed6184aef4860270c08db975a9f7b532 (diff) | |
download | sssd-93515fb9b024efa897dc1442f4641b4a917e649d.tar.gz sssd-93515fb9b024efa897dc1442f4641b4a917e649d.tar.xz sssd-93515fb9b024efa897dc1442f4641b4a917e649d.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.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h index 58a9b7490..743b6f4ff 100644 --- a/src/providers/dp_backend.h +++ b/src/providers/dp_backend.h @@ -258,4 +258,19 @@ int be_fo_run_callbacks_at_next_request(struct be_ctx *ctx, const char *service_name); void reset_fo(struct be_ctx *be_ctx); + +/* 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___ */ |