diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-03-28 15:32:15 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-03-29 00:00:22 +0200 |
commit | 07b6f75bc1eb6d4554b29f41ed1fd623bd4f4bea (patch) | |
tree | a74755260f58c4d2103c227406f5d84e7a846967 /source4/scripting | |
parent | fdd9540187f019df0560eefe0805700df7d91138 (diff) | |
download | samba-07b6f75bc1eb6d4554b29f41ed1fd623bd4f4bea.tar.gz samba-07b6f75bc1eb6d4554b29f41ed1fd623bd4f4bea.tar.bz2 samba-07b6f75bc1eb6d4554b29f41ed1fd623bd4f4bea.zip |
s4-drs: default hostname in samba-tool drs command
default to our hostname
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/netcmd/drs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/drs.py b/source4/scripting/python/samba/netcmd/drs.py index 7dea9de856..69e164ef3e 100644 --- a/source4/scripting/python/samba/netcmd/drs.py +++ b/source4/scripting/python/samba/netcmd/drs.py @@ -415,7 +415,7 @@ class cmd_drs_options(Command): "credopts": options.CredentialsOptions, } - takes_args = ["DC"] + takes_args = ["DC?"] takes_options = [ Option("--dsa-option", help="DSA option to enable/disable", type="str"), @@ -426,7 +426,7 @@ class cmd_drs_options(Command): "DISABLE_OUTBOUND_REPL": 0x00000004, "DISABLE_NTDSCONN_XLATE": 0x00000008} - def run(self, DC, dsa_option=None, + def run(self, DC=None, dsa_option=None, sambaopts=None, credopts=None, versionopts=None): self.lp = sambaopts.get_loadparm() |