diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-02-05 16:39:47 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-02-12 15:38:42 +0100 |
commit | 018e87ac6075e671cbf3c1c3288324ae3608b448 (patch) | |
tree | 7254b06d526b801ac65a22a75dfb0e9f101bd77b /src/providers/ad | |
parent | 86c2e80de2243c3bd7691657086f1a182e7fc45c (diff) | |
download | sssd-018e87ac6075e671cbf3c1c3288324ae3608b448.tar.gz sssd-018e87ac6075e671cbf3c1c3288324ae3608b448.tar.xz sssd-018e87ac6075e671cbf3c1c3288324ae3608b448.zip |
AD: Only download domains that are set to enumerate
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 957c55df7a7086166fb3c14cead6a0dab8f574c1)
Diffstat (limited to 'src/providers/ad')
-rw-r--r-- | src/providers/ad/ad_id.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/ad/ad_id.c b/src/providers/ad/ad_id.c index bfae86284..2d3c11bb8 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) { |