1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00

s4-drs: default hostname in samba-tool drs command

default to our hostname

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell
2011-03-28 15:32:15 +11:00
committed by Andrew Bartlett
parent fdd9540187
commit 07b6f75bc1

View File

@ -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()