diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 0e00bd503f6..b37ca1a6c64 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -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,