mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
s4-python: fix wrong discovery of the site name in find_key_provision_parameters
This commit is contained in:
parent
5db07d2f42
commit
45df4d81ed
@ -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"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user