mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +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:
@ -80,7 +80,7 @@ class cmd_dbcheck(Command):
|
|||||||
search_scope = scope_map[scope]
|
search_scope = scope_map[scope]
|
||||||
|
|
||||||
controls = []
|
controls = []
|
||||||
if H is not None:
|
if H.startswith('ldap'):
|
||||||
controls.append('paged_results:1:1000')
|
controls.append('paged_results:1:1000')
|
||||||
if cross_ncs:
|
if cross_ncs:
|
||||||
controls.append("search_options:1:2")
|
controls.append("search_options:1:2")
|
||||||
|
Reference in New Issue
Block a user