diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-09-26 00:20:20 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-09-26 02:25:12 +0300 |
commit | cf5777111616a2f5239b19b5b95974dd47136c48 (patch) | |
tree | 2e32b1764e46e11723b03b739e3b7cedc54d0641 /source4/torture/drs/python | |
parent | 04826b65f6699bb6455aa1f2800a26400567d339 (diff) | |
download | samba-cf5777111616a2f5239b19b5b95974dd47136c48.tar.gz samba-cf5777111616a2f5239b19b5b95974dd47136c48.tar.bz2 samba-cf5777111616a2f5239b19b5b95974dd47136c48.zip |
s4-delete_object.py: Fix usage of 'paged_search' module for remote LDB connections
Diffstat (limited to 'source4/torture/drs/python')
-rw-r--r-- | source4/torture/drs/python/delete_object.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/drs/python/delete_object.py b/source4/torture/drs/python/delete_object.py index d49420494a..c8475e556a 100644 --- a/source4/torture/drs/python/delete_object.py +++ b/source4/torture/drs/python/delete_object.py @@ -230,8 +230,9 @@ def connect_samdb(samdb_url): samdb_url = "tdb://%s" % samdb_url else: samdb_url = "ldap://%s" % 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(), |