summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-06-13 16:09:14 +0400
committerMatthieu Patou <mat@samba.org>2011-06-19 23:21:07 +0200
commit45df4d81ed37f6d470e3f42a310a6e5f0afa06bf (patch)
treedd4935981032b2162bf80fa768d405e373354a26 /source4
parent5db07d2f42e6bbc0023a504f30b9dcc8fd31b230 (diff)
downloadsamba-45df4d81ed37f6d470e3f42a310a6e5f0afa06bf.tar.gz
samba-45df4d81ed37f6d470e3f42a310a6e5f0afa06bf.tar.bz2
samba-45df4d81ed37f6d470e3f42a310a6e5f0afa06bf.zip
s4-python: fix wrong discovery of the site name in find_key_provision_parameters
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/provision/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py
index f272872a93..0d39befc26 100644
--- a/source4/scripting/python/samba/provision/__init__.py
+++ b/source4/scripting/python/samba/provision/__init__.py
@@ -266,7 +266,7 @@ def find_provision_key_parameters(samdb, secretsdb, idmapdb, paths, smbconf, lp)
names.domaindn=current[0]["defaultNamingContext"]
names.rootdn=current[0]["rootDomainNamingContext"]
# default site name
- res3 = samdb.search(expression="(objectClass=*)",
+ res3 = samdb.search(expression="(objectClass=site)",
base="CN=Sites," + configdn, scope=ldb.SCOPE_ONELEVEL, attrs=["cn"])
names.sitename = str(res3[0]["cn"])