From 6a7679cdd4c07e1b8955b1f0f179a921752a529a Mon Sep 17 00:00:00 2001 From: Giampaolo Lauria Date: Fri, 2 Sep 2011 13:21:49 -0400 Subject: samba-tool: Fixed "domain" subcommands syntax Signed-off-by: Amitay Isaacs Signed-off-by: Andrew Bartlett --- source4/scripting/python/samba/netcmd/domain.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 423a8128b1..884ea64b9f 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -52,7 +52,8 @@ from samba.dsdb import ( class cmd_domain_export_keytab(Command): """Dumps kerberos keys of the domain into a keytab""" - synopsis = "%prog domain exportkeytab " + + synopsis = "%prog domain exportkeytab [options]" takes_options = [ ] @@ -67,9 +68,9 @@ class cmd_domain_export_keytab(Command): class cmd_domain_join(Command): - """Joins domain as either member or backup domain controller [server connection needed]""" + """Joins domain as either member or backup domain controller *""" - synopsis = "%prog domain join [DC | RODC | MEMBER] [options]" + synopsis = "%prog domain join [DC|RODC|MEMBER] [options]" takes_options = [ Option("--server", help="DC to join", type=str), @@ -115,14 +116,14 @@ class cmd_domain_join(Command): domain_critical_only=domain_critical_only) return else: - raise CommandError("Invalid role %s (possible values: MEMBER, BDC, RODC)" % role) + raise CommandError("Invalid role %s (possible values: MEMBER, DC, RODC)" % role) class cmd_domain_level(Command): """Raises domain and forest function levels""" - synopsis = "%prog domain level (show | raise )" + synopsis = "%prog domain level (show|raise ) [options]" takes_options = [ Option("-H", "--URL", help="LDB URL for database or target server", type=str, @@ -308,7 +309,7 @@ class cmd_domain_level(Command): class cmd_domain_machinepassword(Command): """Gets a machine password out of our SAM""" - synopsis = "%prog domain machinepassword " + synopsis = "%prog domain machinepassword [options]" takes_args = ["secret"] @@ -339,7 +340,7 @@ class cmd_domain_passwordsettings(Command): and maximum password age) on a Samba4 server. """ - synopsis = "%prog domain passwordsettings (show | set )" + synopsis = "%prog domain passwordsettings (show|set ) [options]" takes_options = [ Option("-H", "--URL", help="LDB URL for database or target server", type=str, -- cgit