mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r26566: Fix member provision when using python.
(This used to be commit e5573283df
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
249cc734ce
commit
f053e385ff
@ -729,6 +729,7 @@ def provision(lp, setup_dir, message, blank, paths, session_info,
|
||||
|
||||
message("Please install the phpLDAPadmin configuration located at %s into /etc/phpldapadmin/config.php" % paths.phpldapadminconfig)
|
||||
|
||||
if lp.get("server role") == "domain controller":
|
||||
samdb = SamDB(paths.samdb, session_info=session_info,
|
||||
credentials=credentials, lp=lp)
|
||||
|
||||
@ -739,7 +740,6 @@ def provision(lp, setup_dir, message, blank, paths, session_info,
|
||||
scope=SCOPE_SUBTREE)
|
||||
assert isinstance(hostguid, str)
|
||||
|
||||
if lp.get("server role") == "domain controller":
|
||||
message("Setting up DNS zone: %s" % dnsdomain)
|
||||
create_zone_file(paths.dns, setup_path, samdb,
|
||||
hostname=hostname, hostip=hostip, dnsdomain=dnsdomain,
|
||||
|
Reference in New Issue
Block a user