summaryrefslogtreecommitdiff
path: root/server/providers/ldap/ldap_common.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-11-07 23:10:26 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-11-10 09:33:58 -0500
commite6fe8fcb688c89770c55bc7a81422c4141c44d42 (patch)
tree42e56e7c7448a9d33fc0e90adb24551dab9cbab7 /server/providers/ldap/ldap_common.h
parent0f6f40eee34677b0169fe9fdbbf65c3a838165bb (diff)
downloadsssd-e6fe8fcb688c89770c55bc7a81422c4141c44d42.tar.gz
sssd-e6fe8fcb688c89770c55bc7a81422c4141c44d42.tar.bz2
sssd-e6fe8fcb688c89770c55bc7a81422c4141c44d42.zip
Add cleanup task
Diffstat (limited to 'server/providers/ldap/ldap_common.h')
-rw-r--r--server/providers/ldap/ldap_common.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/server/providers/ldap/ldap_common.h b/server/providers/ldap/ldap_common.h
index 0c51428d..9cc30f84 100644
--- a/server/providers/ldap/ldap_common.h
+++ b/server/providers/ldap/ldap_common.h
@@ -69,11 +69,26 @@ int ldap_get_options(TALLOC_CTX *memctx,
const char *conf_path,
struct sdap_options **_opts);
-void ldap_id_enumerate(struct tevent_context *ev,
- struct tevent_timer *tt,
- struct timeval tv, void *pvt);
+int ldap_id_enumerate_set_timer(struct sdap_id_ctx *ctx, struct timeval tv);
+int ldap_id_cleanup_set_timer(struct sdap_id_ctx *ctx, struct timeval tv);
bool sdap_connected(struct sdap_id_ctx *ctx);
void sdap_mark_offline(struct sdap_id_ctx *ctx);
+struct tevent_req *users_get_send(TALLOC_CTX *memctx,
+ struct tevent_context *ev,
+ struct sdap_id_ctx *ctx,
+ const char *name,
+ int filter_type,
+ int attrs_type);
+int users_get_recv(struct tevent_req *req);
+
+struct tevent_req *groups_get_send(TALLOC_CTX *memctx,
+ struct tevent_context *ev,
+ struct sdap_id_ctx *ctx,
+ const char *name,
+ int filter_type,
+ int attrs_type);
+int groups_get_recv(struct tevent_req *req);
+
#endif /* _LDAP_COMMON_H_ */