From e7e62760923af071e7ca215a67f1b297f21da589 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 May 2012 22:02:57 +1000 Subject: [PATCH] s3-utils: Use ads_do_search_retry in net ads search This makes it possible to search against a slow server, as will fallback from 1000 to (eventually) 125 users at a time. Andrew Bartlett Signed-off-by: Jeremy Allison Autobuild-User: Jeremy Allison Autobuild-Date: Sat May 26 03:53:34 CEST 2012 on sn-devel-104 --- source3/utils/net_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index de00a1e3bb4..998ccb8c3b5 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -2255,7 +2255,7 @@ static int net_ads_search(struct net_context *c, int argc, const char **argv) ldap_exp = argv[0]; attrs = (argv + 1); - rc = ads_do_search_all(ads, ads->config.bind_path, + rc = ads_do_search_retry(ads, ads->config.bind_path, LDAP_SCOPE_SUBTREE, ldap_exp, attrs, &res); if (!ADS_ERR_OK(rc)) {