1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

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)
This commit is contained in:
Andrew Tridgell 2011-07-05 12:44:07 +10:00
parent 5f1c443a77
commit c6985f1e7e

View File

@ -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")