summaryrefslogtreecommitdiff
path: root/source4/scripting/devel
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-26 00:10:24 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-26 02:25:10 +0300
commit7e1e7b16f6c2184554c429e039227efd6c7ed839 (patch)
treeb14b6983e1a990aac029997a40c1dbf068b6824b /source4/scripting/devel
parent9e6fa8553cb7ca7fece76646c30f7fcb2a86a83a (diff)
downloadsamba-7e1e7b16f6c2184554c429e039227efd6c7ed839.tar.gz
samba-7e1e7b16f6c2184554c429e039227efd6c7ed839.tar.bz2
samba-7e1e7b16f6c2184554c429e039227efd6c7ed839.zip
s4-ldapcmp: Fix usage of 'paged_search' module for remote LDB connections
Diffstat (limited to 'source4/scripting/devel')
-rwxr-xr-xsource4/scripting/devel/ldapcmp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/devel/ldapcmp b/source4/scripting/devel/ldapcmp
index e3d5ee7b2c..74a22bf33b 100755
--- a/source4/scripting/devel/ldapcmp
+++ b/source4/scripting/devel/ldapcmp
@@ -50,8 +50,9 @@ class LDAPBase(object):
samdb_url = "tdb://%s" % host
else:
samdb_url = "ldap://%s:389" % host
- # 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"]
self.ldb = Ldb(url=samdb_url,
credentials=creds,
lp=lp,