mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s4:provision: only print the adminpass if it was generated (not user-provided)
This commit is contained in:
parent
09b865b2f0
commit
8ca39dfbe1
@ -1744,6 +1744,9 @@ def provision(logger, session_info, credentials, smbconf=None,
|
||||
|
||||
if adminpass is None:
|
||||
adminpass = samba.generate_random_password(12, 32)
|
||||
adminpass_generated = True
|
||||
else:
|
||||
adminpass_generated = False
|
||||
|
||||
if samdb_fill == FILL_FULL:
|
||||
provision_fill(samdb, secrets_ldb, logger,
|
||||
@ -1799,6 +1802,7 @@ def provision(logger, session_info, credentials, smbconf=None,
|
||||
logger.info("DNS Domain: %s" % names.dnsdomain)
|
||||
logger.info("DOMAIN SID: %s" % str(domainsid))
|
||||
if samdb_fill == FILL_FULL:
|
||||
if adminpass_generated:
|
||||
logger.info("Admin password: %s" % adminpass)
|
||||
if provision_backend.type is not "ldb":
|
||||
if provision_backend.credentials.get_bind_dn() is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user