diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-08-26 16:52:18 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-08-27 13:55:23 -0400 |
commit | dd6bf2b53c0f01cf5d0e748ae090cefa0557990c (patch) | |
tree | 7832a9bb972482d7027acfbf0e74bf7ef27f6748 /server/providers/ldap/sdap_async.h | |
parent | 61684e3e684855a72555c11a6de980b132676067 (diff) | |
download | sssd-dd6bf2b53c0f01cf5d0e748ae090cefa0557990c.tar.gz sssd-dd6bf2b53c0f01cf5d0e748ae090cefa0557990c.tar.xz sssd-dd6bf2b53c0f01cf5d0e748ae090cefa0557990c.zip |
Make enumeration an independent task
Always immediately return to DP, and update users/groups in the background.
Also implements an optimization to retrieve only changed/new users/groups
by filtering using the modifyTimestamp after the first query.
Diffstat (limited to 'server/providers/ldap/sdap_async.h')
-rw-r--r-- | server/providers/ldap/sdap_async.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/providers/ldap/sdap_async.h b/server/providers/ldap/sdap_async.h index 0cb0b9076..c9af750bb 100644 --- a/server/providers/ldap/sdap_async.h +++ b/server/providers/ldap/sdap_async.h @@ -40,7 +40,8 @@ struct tevent_req *sdap_get_users_send(TALLOC_CTX *memctx, struct sdap_handle *sh, const char **attrs, const char *wildcard); -int sdap_get_users_recv(struct tevent_req *req); +int sdap_get_users_recv(struct tevent_req *req, + TALLOC_CTX *mem_ctx, char **timestamp); struct tevent_req *sdap_get_groups_send(TALLOC_CTX *memctx, struct tevent_context *ev, @@ -50,7 +51,8 @@ struct tevent_req *sdap_get_groups_send(TALLOC_CTX *memctx, struct sdap_handle *sh, const char **attrs, const char *wildcard); -int sdap_get_groups_recv(struct tevent_req *req); +int sdap_get_groups_recv(struct tevent_req *req, + TALLOC_CTX *mem_ctx, char **timestamp); struct tevent_req *sdap_auth_send(TALLOC_CTX *memctx, struct tevent_context *ev, |