From 5b83443dd252a3897feda134f224f6b09f283372 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 1 Oct 2013 17:44:07 +0200 Subject: LDAP: Split out a request to search for a user w/o saving Related: https://fedorahosted.org/sssd/ticket/2077 Certain situations require that a user entry is downloaded for further inpection, but not saved to the sysdb right away. This patch splits the previously monolithic request into one that just downloads the data and one that uses the new one to download and save the user. --- src/providers/ldap/sdap_async.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/providers/ldap/sdap_async.h') diff --git a/src/providers/ldap/sdap_async.h b/src/providers/ldap/sdap_async.h index c8031c9a9..dbf572cdc 100644 --- a/src/providers/ldap/sdap_async.h +++ b/src/providers/ldap/sdap_async.h @@ -58,6 +58,22 @@ errno_t sdap_connect_host_recv(TALLOC_CTX *mem_ctx, struct tevent_req *req, struct sdap_handle **_sh); +/* Search users in LDAP, return them as attrs */ +struct tevent_req *sdap_search_user_send(TALLOC_CTX *memctx, + struct tevent_context *ev, + struct sss_domain_info *dom, + struct sdap_options *opts, + struct sdap_search_base **search_bases, + struct sdap_handle *sh, + const char **attrs, + const char *filter, + int timeout, + bool enumeration); +int sdap_search_user_recv(TALLOC_CTX *memctx, struct tevent_req *req, + char **higher_usn, struct sysdb_attrs ***users, + size_t *count); + +/* Search users in LDAP using the request above, save them to cache */ struct tevent_req *sdap_get_users_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sss_domain_info *dom, -- cgit