summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-10-01 17:44:07 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-12-03 15:59:39 +0100
commita1abb8d8a5fc58042cb02bdd7433297ff1ebc20b (patch)
tree88f125c8eb7cf9993462ccd9658366f4a1ef83d5 /src/providers/ldap/sdap_async.h
parenta9ec49574a46c91151c6e5dc237b4f12e8961430 (diff)
downloadsssd-a1abb8d8a5fc58042cb02bdd7433297ff1ebc20b.tar.gz
sssd-a1abb8d8a5fc58042cb02bdd7433297ff1ebc20b.tar.xz
sssd-a1abb8d8a5fc58042cb02bdd7433297ff1ebc20b.zip
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.
Diffstat (limited to 'src/providers/ldap/sdap_async.h')
-rw-r--r--src/providers/ldap/sdap_async.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async.h b/src/providers/ldap/sdap_async.h
index 8c16d94e6..7d393b289 100644
--- a/src/providers/ldap/sdap_async.h
+++ b/src/providers/ldap/sdap_async.h
@@ -43,6 +43,22 @@ int sdap_connect_recv(struct tevent_req *req,
TALLOC_CTX *memctx,
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,