From 8780d2934bee14664e44643f70c90b609acda6b0 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sun, 26 Sep 2010 00:11:08 +0300 Subject: s4-dsdb_schema_info.py: Fix usage of 'paged_search' module for remote LDB connections --- source4/dsdb/tests/python/dsdb_schema_info.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'source4/dsdb/tests/python') 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) -- cgit