summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-08-24 14:43:57 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-18 19:15:34 +0200
commit55403f58f35814fab94106b913e8f3b4e98e92b8 (patch)
tree8bc710bbf89caf5db0072cfccd9f99daa4491c2d /src/providers/ldap/ldap_common.c
parent287e03aed7ab6298c0330c6544c29cafb031e0a5 (diff)
downloadsssd-55403f58f35814fab94106b913e8f3b4e98e92b8.tar.gz
sssd-55403f58f35814fab94106b913e8f3b4e98e92b8.tar.xz
sssd-55403f58f35814fab94106b913e8f3b4e98e92b8.zip
LDAP: sdap_id_setup_tasks accepts a custom enum request
AD provider will override the default with its own.
Diffstat (limited to 'src/providers/ldap/ldap_common.c')
-rw-r--r--src/providers/ldap/ldap_common.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index 0df5afe8e..b668a48e3 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -938,12 +938,16 @@ void sdap_mark_offline(struct sdap_id_ctx *ctx)
int ldap_id_setup_tasks(struct sdap_id_ctx *ctx)
{
- return sdap_id_setup_tasks(ctx, ctx->conn, ctx->opts->sdom);
+ return sdap_id_setup_tasks(ctx, ctx->conn, ctx->opts->sdom,
+ ldap_enumeration_send,
+ ldap_enumeration_recv);
}
int sdap_id_setup_tasks(struct sdap_id_ctx *ctx,
struct sdap_id_conn_ctx *conn,
- struct sdap_domain *sdom)
+ struct sdap_domain *sdom,
+ be_ptask_send_t send_fn,
+ be_ptask_recv_t recv_fn)
{
struct timeval tv;
int ret = EOK;
@@ -952,7 +956,7 @@ int sdap_id_setup_tasks(struct sdap_id_ctx *ctx,
/* set up enumeration task */
if (sdom->dom->enumerate) {
DEBUG(SSSDBG_TRACE_FUNC, ("Setting up enumeration for %s\n", sdom->dom->name));
- ret = ldap_setup_enumeration(ctx, conn, sdom);
+ ret = ldap_setup_enumeration(ctx, conn, sdom, send_fn, recv_fn);
} else {
/* the enumeration task, runs the cleanup process by itself,
* but if enumeration is not running we need to schedule it */