dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0082-AD-Only-download-domains-that-are-set-to-enumerate.patch

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