From 2541ab32a316d784fb600c7c70c239430582b947 Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Mon, 26 May 2014 16:17:50 +0200 Subject: samba-tool: add --site parameter to provision command (bug #10674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Michael Adam Reviewed-by: Kamen Mazdrashki (cherry picked from commit 4ca1d69d7daa8f4f92d44cd505aa0983f2ab56bf) --- python/samba/netcmd/domain.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 4ba305c271..fbb6c0fa13 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -165,6 +165,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", @@ -227,6 +229,7 @@ class cmd_domain_provision(Command): host_ip=None, host_ip6=None, adminpass=None, + site=None, krbtgtpass=None, machinepass=None, dns_backend=None, @@ -385,7 +388,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, -- cgit v1.2.3