mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
samba-tool: add --site parameter to provision command
This new parameter offers the option to specify a default initial site name. Otherwise it will be "Default-First-Site-Name". Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
This commit is contained in:
parent
4ebd7250ef
commit
4ca1d69d7d
@ -167,6 +167,8 @@ class cmd_domain_provision(Command):
|
||||
help="set IPv4 ipaddress"),
|
||||
Option("--host-ip6", type="string", metavar="IP6ADDRESS",
|
||||
help="set IPv6 ipaddress"),
|
||||
Option("--site", type="string", metavar="SITENAME",
|
||||
help="set site name"),
|
||||
Option("--adminpass", type="string", metavar="PASSWORD",
|
||||
help="choose admin password (otherwise random)"),
|
||||
Option("--krbtgtpass", type="string", metavar="PASSWORD",
|
||||
@ -244,6 +246,7 @@ class cmd_domain_provision(Command):
|
||||
host_ip=None,
|
||||
host_ip6=None,
|
||||
adminpass=None,
|
||||
site=None,
|
||||
krbtgtpass=None,
|
||||
machinepass=None,
|
||||
dns_backend=None,
|
||||
@ -411,7 +414,7 @@ class cmd_domain_provision(Command):
|
||||
domainguid=domain_guid, domainsid=domain_sid,
|
||||
hostname=host_name,
|
||||
hostip=host_ip, hostip6=host_ip6,
|
||||
ntdsguid=ntds_guid,
|
||||
sitename=site, ntdsguid=ntds_guid,
|
||||
invocationid=invocationid, adminpass=adminpass,
|
||||
krbtgtpass=krbtgtpass, machinepass=machinepass,
|
||||
dns_backend=dns_backend, dns_forwarder=dns_forwarder,
|
||||
|
Loading…
Reference in New Issue
Block a user