From 7c7de044bb08aa6b5c9f32c000c3b97a3c55ca31 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 18 Nov 2009 19:09:26 -0500 Subject: Better behavior on cleanup With the previous code in domains with many users and enumeration enable we would eventually end up making thousands of individual searches for entries in the clean-up process. Change the code to do a full enumeration before a cleanup so we do one single big search to update all entries and only then search for entries to purge. This also fixes the fact that the cleanup task was running at every enumeration instead of running every "ldap_purge_cache_timeout" seconds. --- server/providers/ldap/sdap_async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/providers/ldap/sdap_async.c') diff --git a/server/providers/ldap/sdap_async.c b/server/providers/ldap/sdap_async.c index 99d829794..5a90339e3 100644 --- a/server/providers/ldap/sdap_async.c +++ b/server/providers/ldap/sdap_async.c @@ -769,7 +769,7 @@ struct tevent_req *sdap_get_generic_send(TALLOC_CTX *memctx, state->reply_count = 0; state->reply = NULL; - DEBUG(7, ("calling ldap_search_ext with [%s][%s].\n", state->filter, + DEBUG(6, ("calling ldap_search_ext with [%s][%s].\n", state->filter, state->search_base)); if (debug_level >= 7) { int i; -- cgit