summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-26 02:13:39 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-26 02:25:13 +0300
commitf1b3c4dd387ac04615c3443d5de1059d2dc59ba4 (patch)
tree24009e97c8be3eabca05188a8156843d7aa2e151 /source4/dsdb/samdb
parent11785600be99f3a5b6edeef6f9efe4898abeb3d8 (diff)
downloadsamba-f1b3c4dd387ac04615c3443d5de1059d2dc59ba4.tar.gz
samba-f1b3c4dd387ac04615c3443d5de1059d2dc59ba4.tar.bz2
samba-f1b3c4dd387ac04615c3443d5de1059d2dc59ba4.zip
s4-possibleinferiors.py: Fix usage of 'paged_search' module for remote LDB connections
Diffstat (limited to 'source4/dsdb/samdb')
-rwxr-xr-xsource4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py b/source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py
index 3324d4b7e2..c1e935f95c 100755
--- a/source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py
+++ b/source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py
@@ -59,7 +59,13 @@ def uniq_list(alist):
lp_ctx = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp_ctx)
-db = Ldb(url, credentials=creds, lp=lp_ctx, options=["modules:paged_searches"])
+
+ldb_options = []
+# use 'paged_search' module when connecting remotely
+if url.lower().startswith("ldap://"):
+ ldb_options = ["modules:paged_searches"]
+
+db = Ldb(url, credentials=creds, lp=lp_ctx, options=ldb_options)
# get the rootDSE
res = db.search(base="", expression="",