mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4-sec_descriptor.py: Fix usage of 'paged_search' module for remote LDB connections
This commit is contained in:
parent
7a7068f2ed
commit
04826b65f6
@ -1964,7 +1964,15 @@ if not "://" in host:
|
||||
else:
|
||||
host = "ldap://%s" % host
|
||||
|
||||
ldb = SamDB(host, credentials=creds, session_info=system_session(), lp=lp, options=["modules:paged_searches"])
|
||||
# use 'paged_search' module when connecting remotely
|
||||
if host.lower().startswith("ldap://"):
|
||||
ldb_options = ["modules:paged_searches"]
|
||||
|
||||
ldb = SamDB(host,
|
||||
credentials=creds,
|
||||
session_info=system_session(),
|
||||
lp=lp,
|
||||
options=ldb_options)
|
||||
|
||||
runner = SubunitTestRunner()
|
||||
rc = 0
|
||||
|
Loading…
Reference in New Issue
Block a user