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-11-20 15:17:51 +0100
commit5b83443dd252a3897feda134f224f6b09f283372 (patch)
tree75e7ac9a12d2c34ee12e5b943bd1abce94189d95 /src/providers/ldap/sdap_async.h
parent7a8f19affd2a050fd2e9631a54c0e67048d3920c (diff)
downloadsssd-5b83443dd252a3897feda134f224f6b09f283372.tar.gz
sssd-5b83443dd252a3897feda134f224f6b09f283372.tar.xz
sssd-5b83443dd252a3897feda134f224f6b09f283372.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 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,