summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
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)