diff options
-rw-r--r-- | python/samba/netcmd/domain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 134d93f442..e7269c6523 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -584,6 +584,9 @@ class cmd_domain_join(Command): machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend) elif role == "SUBDOMAIN": + if not adminpass: + logger.info("Administrator password will be set randomly!") + netbios_domain = lp.get("workgroup") if parent_domain is None: parent_domain = ".".join(domain.split(".")[1:]) |