mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s4-ldapcmp: Fix usage of 'paged_search' module for remote LDB connections
This commit is contained in:
parent
9e6fa8553c
commit
7e1e7b16f6
@ -50,8 +50,9 @@ class LDAPBase(object):
|
||||
samdb_url = "tdb://%s" % host
|
||||
else:
|
||||
samdb_url = "ldap://%s:389" % host
|
||||
# user 'paged_search' module when connecting remotely
|
||||
ldb_options = ["modules:paged_searches"]
|
||||
# use 'paged_search' module when connecting remotely
|
||||
if samdb_url.lower().startswith("ldap://"):
|
||||
ldb_options = ["modules:paged_searches"]
|
||||
self.ldb = Ldb(url=samdb_url,
|
||||
credentials=creds,
|
||||
lp=lp,
|
||||
|
Loading…
Reference in New Issue
Block a user