diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-06-28 15:13:13 +1200 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-07-02 02:23:10 +0000 |
commit | 5583208aed0e4647269e48aa1d3c5c48a73001ac (patch) | |
tree | ea5ce6f01dbdbba7aef1b96ddd3ee0254555c7a2 /python | |
parent | 54fbac97ef70ece7a0607d5d6073501f08f8adc6 (diff) | |
download | samba-5583208aed0e4647269e48aa1d3c5c48a73001ac.tar.gz |
samba-tool domain join: remove the subdomain option
Remove the sub domain option from join, as it currently does not work.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/domain.py | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index d7b7cdb315c..66027b26d26 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -647,7 +647,7 @@ class cmd_domain_dcpromo(Command): class cmd_domain_join(Command): """Join domain as either member or backup domain controller.""" - synopsis = "%prog <dnsdomain> [DC|RODC|MEMBER|SUBDOMAIN] [options]" + synopsis = "%prog <dnsdomain> [DC|RODC|MEMBER] [options]" takes_optiongroups = { "sambaopts": options.SambaOptions, @@ -715,24 +715,11 @@ class cmd_domain_join(Command): plaintext_secrets=plaintext_secrets, backend_store=backend_store, backend_store_size=backend_store_size) - 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:]) - join_subdomain(logger=logger, server=server, creds=creds, lp=lp, dnsdomain=domain, - parent_domain=parent_domain, site=site, - netbios_name=netbios_name, netbios_domain=netbios_domain, - targetdir=targetdir, machinepass=machinepass, - use_ntvfs=use_ntvfs, dns_backend=dns_backend, - adminpass=adminpass, - plaintext_secrets=plaintext_secrets, - backend_store=backend_store, - backend_store_size=backend_store_size) + # elif role == "SUBDOMAIN": + # subdomain command removed by Gary Lockyer <gary@catalyst.net.nz> + # on the 28th June 2019. else: - raise CommandError("Invalid role '%s' (possible values: MEMBER, DC, RODC, SUBDOMAIN)" % role) + raise CommandError("Invalid role '%s' (possible values: MEMBER, DC, RODC)" % role) class cmd_domain_demote(Command): |