diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-09-26 00:21:19 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-09-26 02:25:12 +0300 |
commit | 11785600be99f3a5b6edeef6f9efe4898abeb3d8 (patch) | |
tree | 29b733c811e72a7d627f7d4f27d5c355615e6db3 /source4/torture | |
parent | cf5777111616a2f5239b19b5b95974dd47136c48 (diff) | |
download | samba-11785600be99f3a5b6edeef6f9efe4898abeb3d8.tar.gz samba-11785600be99f3a5b6edeef6f9efe4898abeb3d8.tar.bz2 samba-11785600be99f3a5b6edeef6f9efe4898abeb3d8.zip |
s4-fsmo.py: Fix usage of 'paged_search' module for remote LDB connections
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/drs/python/fsmo.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/drs/python/fsmo.py b/source4/torture/drs/python/fsmo.py index 9b13275e18..27107c1f6a 100644 --- a/source4/torture/drs/python/fsmo.py +++ b/source4/torture/drs/python/fsmo.py @@ -166,8 +166,9 @@ def connect_samdb(samdb_url): samdb_url = "tdb://%s" % samdb_url else: samdb_url = "ldap://%s:389" % samdb_url - # 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"] return SamDB(url=samdb_url, lp=samba.tests.env_loadparm(), |