diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-08 11:15:35 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-12 12:39:05 +0200 |
commit | f34f16f7f87d39cd21ce43c51ccb5726ff44c959 (patch) | |
tree | 40e5cb948e4abcc626b9dd0a3021124e71f0428e /source4 | |
parent | 5d6b8483943697cc10fe7e42fcf2d544f5758dbc (diff) | |
download | samba-f34f16f7f87d39cd21ce43c51ccb5726ff44c959.tar.gz samba-f34f16f7f87d39cd21ce43c51ccb5726ff44c959.tar.bz2 samba-f34f16f7f87d39cd21ce43c51ccb5726ff44c959.zip |
s3:samba-tool: add --domain-critical-only to "samba-tool domain join"
metze
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/netcmd/domain.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 50b5d80395..423a8128b1 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -75,12 +75,16 @@ class cmd_domain_join(Command): Option("--server", help="DC to join", type=str), Option("--site", help="site to join", type=str), Option("--targetdir", help="where to store provision", type=str), + Option("--domain-critical-only", + help="only replicate critical domain objects", + action="store_true"), ] takes_args = ["domain", "role?"] def run(self, domain, role=None, sambaopts=None, credopts=None, - versionopts=None, server=None, site=None, targetdir=None): + versionopts=None, server=None, site=None, targetdir=None, + domain_critical_only=False): lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp) net = Net(creds, lp, server=credopts.ipaddress) @@ -102,11 +106,13 @@ class cmd_domain_join(Command): return elif role == "DC": join_DC(server=server, creds=creds, lp=lp, domain=domain, - site=site, netbios_name=netbios_name, targetdir=targetdir) + site=site, netbios_name=netbios_name, targetdir=targetdir, + domain_critical_only=domain_critical_only) return elif role == "RODC": join_RODC(server=server, creds=creds, lp=lp, domain=domain, - site=site, netbios_name=netbios_name, targetdir=targetdir) + site=site, netbios_name=netbios_name, targetdir=targetdir, + domain_critical_only=domain_critical_only) return else: raise CommandError("Invalid role %s (possible values: MEMBER, BDC, RODC)" % role) |