summaryrefslogtreecommitdiff
path: root/source4/scripting/devel
diff options
context:
space:
mode:
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,