summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-18 22:02:57 +1000
committerJeremy Allison <jra@samba.org>2012-05-26 03:53:34 +0200
commite7e62760923af071e7ca215a67f1b297f21da589 (patch)
tree7a7e9241f510ccb0060d432bbcbb64434665656f /source3/utils
parent0da10c842e06e98cf94482b654b87ff5991344ae (diff)
downloadsamba-e7e62760923af071e7ca215a67f1b297f21da589.tar.gz
samba-e7e62760923af071e7ca215a67f1b297f21da589.tar.bz2
samba-e7e62760923af071e7ca215a67f1b297f21da589.zip
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 <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat May 26 03:53:34 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index de00a1e3bb..998ccb8c3b 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)) {