mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
python/samba/provision: PY3 port samba4.dlz_bind9.version
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
008b9652ca
commit
5b4c664856
@ -60,7 +60,7 @@ from samba.provision.common import (
|
||||
)
|
||||
|
||||
from samba.samdb import get_default_backend_store
|
||||
|
||||
from samba.compat import get_string
|
||||
|
||||
def get_domainguid(samdb, domaindn):
|
||||
res = samdb.search(base=domaindn, scope=ldb.SCOPE_BASE, attrs=["objectGUID"])
|
||||
@ -798,12 +798,12 @@ def create_samdb_copy(samdb, logger, paths, names, domainsid, domainguid):
|
||||
scope=ldb.SCOPE_BASE,
|
||||
attrs=["partition", "backendStore"])
|
||||
for tmp in res[0]["partition"]:
|
||||
(nc, fname) = tmp.split(':')
|
||||
(nc, fname) = str(tmp).split(':')
|
||||
partfile[nc.upper()] = fname
|
||||
|
||||
backend_store = get_default_backend_store()
|
||||
if "backendStore" in res[0]:
|
||||
backend_store = res[0]["backendStore"][0]
|
||||
backend_store = str(res[0]["backendStore"][0])
|
||||
|
||||
# Create empty domain partition
|
||||
|
||||
@ -954,6 +954,7 @@ def create_named_conf(paths, realm, dnsdomain, dns_backend, logger):
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
cwd='.').communicate()[0]
|
||||
bind_info = get_string(bind_info)
|
||||
bind9_8 = '#'
|
||||
bind9_9 = '#'
|
||||
bind9_10 = '#'
|
||||
|
Loading…
Reference in New Issue
Block a user