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:
parent
5f1c443a77
commit
c6985f1e7e
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user