diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-09-26 00:10:24 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-09-26 02:25:10 +0300 |
commit | 7e1e7b16f6c2184554c429e039227efd6c7ed839 (patch) | |
tree | b14b6983e1a990aac029997a40c1dbf068b6824b | |
parent | 9e6fa8553cb7ca7fece76646c30f7fcb2a86a83a (diff) | |
download | samba-7e1e7b16f6c2184554c429e039227efd6c7ed839.tar.gz samba-7e1e7b16f6c2184554c429e039227efd6c7ed839.tar.bz2 samba-7e1e7b16f6c2184554c429e039227efd6c7ed839.zip |
s4-ldapcmp: Fix usage of 'paged_search' module for remote LDB connections
-rwxr-xr-x | source4/scripting/devel/ldapcmp | 5 |
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, |