summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-26 00:11:08 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-26 02:25:11 +0300
commit8780d2934bee14664e44643f70c90b609acda6b0 (patch)
tree54bd0f6b95d60f6b5e237986fa0569d8715649d2 /source4/dsdb
parent7e1e7b16f6c2184554c429e039227efd6c7ed839 (diff)
downloadsamba-8780d2934bee14664e44643f70c90b609acda6b0.tar.gz
samba-8780d2934bee14664e44643f70c90b609acda6b0.tar.bz2
samba-8780d2934bee14664e44643f70c90b609acda6b0.zip
s4-dsdb_schema_info.py: Fix usage of 'paged_search' module for remote LDB connections
Diffstat (limited to 'source4/dsdb')
-rwxr-xr-xsource4/dsdb/tests/python/dsdb_schema_info.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/dsdb/tests/python/dsdb_schema_info.py b/source4/dsdb/tests/python/dsdb_schema_info.py
index ff3c7f9b98..893cd4cdfb 100755
--- a/source4/dsdb/tests/python/dsdb_schema_info.py
+++ b/source4/dsdb/tests/python/dsdb_schema_info.py
@@ -203,11 +203,12 @@ if not "://" in ldb_url:
ldb_url = "tdb://%s" % ldb_url
else:
ldb_url = "ldap://%s" % ldb_url
- # user 'paged_search' module when connecting remotely
- ldb_options = ["modules:paged_searches"]
+# use 'paged_search' module when connecting remotely
+if ldb_url.lower().startswith("ldap://"):
+ ldb_options = ["modules:paged_searches"]
ldb = SamDB(url=ldb_url,
- lp=samba.tests.env_loadparm(),
- session_info=system_session(),
- credentials=samba.tests.cmdline_credentials,
- options=ldb_options)
+ lp=samba.tests.env_loadparm(),
+ session_info=system_session(),
+ credentials=samba.tests.cmdline_credentials,
+ options=ldb_options)