mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
join: Don't print provision results when they're just noise.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Feb 26 17:56:57 CET 2012 on sn-devel-104
This commit is contained in:
parent
6664541156
commit
d09764e180
@ -589,17 +589,15 @@ class dc_join(object):
|
||||
logger.addHandler(logging.StreamHandler(sys.stdout))
|
||||
smbconf = ctx.lp.configfile
|
||||
|
||||
presult = provision(logger, system_session(), None,
|
||||
smbconf=smbconf, targetdir=ctx.targetdir, samdb_fill=FILL_DRS,
|
||||
realm=ctx.realm, rootdn=ctx.root_dn, domaindn=ctx.base_dn,
|
||||
schemadn=ctx.schema_dn,
|
||||
configdn=ctx.config_dn,
|
||||
serverdn=ctx.server_dn, domain=ctx.domain_name,
|
||||
hostname=ctx.myname, domainsid=ctx.domsid,
|
||||
machinepass=ctx.acct_pass, serverrole="domain controller",
|
||||
sitename=ctx.site, lp=ctx.lp, ntdsguid=ctx.ntds_guid,
|
||||
dns_backend="NONE")
|
||||
presult.report_logger(logger)
|
||||
presult = provision(logger, system_session(), None, smbconf=smbconf,
|
||||
targetdir=ctx.targetdir, samdb_fill=FILL_DRS, realm=ctx.realm,
|
||||
rootdn=ctx.root_dn, domaindn=ctx.base_dn,
|
||||
schemadn=ctx.schema_dn, configdn=ctx.config_dn,
|
||||
serverdn=ctx.server_dn, domain=ctx.domain_name,
|
||||
hostname=ctx.myname, domainsid=ctx.domsid,
|
||||
machinepass=ctx.acct_pass, serverrole="domain controller",
|
||||
sitename=ctx.site, lp=ctx.lp, ntdsguid=ctx.ntds_guid,
|
||||
dns_backend="NONE")
|
||||
print "Provision OK for domain DN %s" % presult.domaindn
|
||||
ctx.local_samdb = presult.samdb
|
||||
ctx.lp = presult.lp
|
||||
|
Loading…
x
Reference in New Issue
Block a user