From 94f1e5966733e1b327a9eba37781379c5d90f8a3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 5 Feb 2014 16:39:47 +0100 Subject: [PATCH 82/84] AD: Only download domains that are set to enumerate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Pavel Březina (cherry picked from commit 957c55df7a7086166fb3c14cead6a0dab8f574c1) --- src/providers/ad/ad_id.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/providers/ad/ad_id.c b/src/providers/ad/ad_id.c index bfae86284355b6c13547aac55b7273133bde851d..2d3c11bb838f1418c006f9d79d8552cec1443e66 100644 --- a/src/providers/ad/ad_id.c +++ b/src/providers/ad/ad_id.c @@ -660,7 +660,11 @@ ad_enumeration_done(struct tevent_req *subreq) return; } - state->sditer = state->sditer->next; + do { + state->sditer = state->sditer->next; + } while (state->sditer && + state->sditer->dom->enumerate == false); + if (state->sditer != NULL) { subdom_id_ctx = talloc_get_type(state->sdom->pvt, struct ad_id_ctx); if (subdom_id_ctx == NULL) { -- 1.8.5.3