summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-05 12:44:07 +1000
committerAndrew Tridgell <tridge@samba.org>2011-07-05 07:10:03 +0200
commitc6985f1e7ed6f2d4d7e39e3eea7ed714f6c6ae06 (patch)
treeab780b258f06c575e6592062b09b21823560301f
parent5f1c443a7768a4b610d6a7aff695cb60f91adf2d (diff)
downloadsamba-c6985f1e7ed6f2d4d7e39e3eea7ed714f6c6ae06.tar.gz
samba-c6985f1e7ed6f2d4d7e39e3eea7ed714f6c6ae06.tar.bz2
samba-c6985f1e7ed6f2d4d7e39e3eea7ed714f6c6ae06.zip
dbcheck: only use a paged search when checking a ldap database
paged searches don't work against a local database (they return only the first N objects)
-rw-r--r--source4/scripting/python/samba/netcmd/dbcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/dbcheck.py b/source4/scripting/python/samba/netcmd/dbcheck.py
index 3cc50eb814..c97942bc90 100644
--- a/source4/scripting/python/samba/netcmd/dbcheck.py
+++ b/source4/scripting/python/samba/netcmd/dbcheck.py
@@ -80,7 +80,7 @@ class cmd_dbcheck(Command):
search_scope = scope_map[scope]
controls = []
- if H is not None:
+ if H.startswith('ldap'):
controls.append('paged_results:1:1000')
if cross_ncs:
controls.append("search_options:1:2")