From 66edf42c51f8591c93204b6490c103fa51346f47 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 22 Aug 2013 11:02:32 +0200 Subject: LDAP: Make the cleanup task reusable for subdomains Instead of always performing the cleanup on the main domain, the task now accepts a sdap_domain structure to perform the cleanup on. This change will make the cleanup task reusable for subdomains. --- src/providers/ldap/ldap_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/ldap/ldap_common.c') diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 05e487a1..ffa8aae5 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -960,7 +960,7 @@ int sdap_id_setup_tasks(struct sdap_id_ctx *ctx) /* run the first one in a couple of seconds so that we have time to * finish initializations first*/ tv = tevent_timeval_current_ofs(10, 0); - ret = ldap_id_cleanup_set_timer(ctx, tv); + ret = ldap_id_cleanup_create_timer(ctx, ctx->opts->sdom, tv); } return ret; -- cgit