git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cf57771
)
s4-fsmo.py: Fix usage of 'paged_search' module for remote LDB connections
author
Kamen Mazdrashki
<kamenim@samba.org>
Sat, 25 Sep 2010 21:21:19 +0000
(
00:21
+0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Sat, 25 Sep 2010 23:25:12 +0000
(
02:25
+0300)
source4/torture/drs/python/fsmo.py
patch
|
blob
|
history
diff --git
a/source4/torture/drs/python/fsmo.py
b/source4/torture/drs/python/fsmo.py
index 9b13275e18a3ffe4d85b972392a95d30838a836a..27107c1f6a6c7146886608bd095d74c4ac24da8b 100644
(file)
--- 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(),