summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2014-05-26 16:17:50 +0200
committerKarolin Seeger <kseeger@samba.org>2014-07-15 12:46:11 +0200
commit2541ab32a316d784fb600c7c70c239430582b947 (patch)
tree60929fd95606f6810dfcaa6e6b43d7754609dac8
parentf1b969b334b55ae58667af4586aab5247dba5a1a (diff)
downloadsamba-2541ab32a316d784fb600c7c70c239430582b947.tar.gz
samba-tool: add --site parameter to provision command (bug #10674)
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> (cherry picked from commit 4ca1d69d7daa8f4f92d44cd505aa0983f2ab56bf)
-rw-r--r--python/samba/netcmd/domain.py5
1 files changed, 4 insertions, 1 deletions
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,