summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/domain.py
diff options
context:
space:
mode:
authorGiampaolo Lauria <lauria2@yahoo.com>2011-07-15 12:07:03 -0400
committerAndrew Tridgell <tridge@samba.org>2011-07-21 10:32:24 +1000
commitf6fa8684896b8f3f9f8b7bd3742c99906973274c (patch)
tree633d65aa65aac5ee2d0ae431f549f970c10f4aa7 /source4/scripting/python/samba/netcmd/domain.py
parent1dfcb019d2dcca1d21ec32ee05bf7da15ca84e9f (diff)
downloadsamba-f6fa8684896b8f3f9f8b7bd3742c99906973274c.tar.gz
samba-f6fa8684896b8f3f9f8b7bd3742c99906973274c.tar.xz
samba-f6fa8684896b8f3f9f8b7bd3742c99906973274c.zip
samba-tool: moved takes_optiongroups definition to Command base class
The option groups should be defined at the Command base class level as they are in common across all samba-tool commands. Major move advantages: 1. more OOP approach 2. enforcing consistency across commands 3. avoiding the need of declaring for every new command Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/scripting/python/samba/netcmd/domain.py')
-rw-r--r--source4/scripting/python/samba/netcmd/domain.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py
index f56dd97b811..110a8653730 100644
--- a/source4/scripting/python/samba/netcmd/domain.py
+++ b/source4/scripting/python/samba/netcmd/domain.py
@@ -54,12 +54,6 @@ class cmd_domain_dumpkeys(Command):
"""Dumps kerberos keys of the domain into a keytab"""
synopsis = "%prog domain dumpkeys <keytab>"
- takes_optiongroups = {
- "sambaopts": options.SambaOptions,
- "credopts": options.CredentialsOptions,
- "versionopts": options.VersionOptions,
- }
-
takes_options = [
]
@@ -77,12 +71,6 @@ class cmd_domain_join(Command):
synopsis = "%prog domain join <dnsdomain> [DC | RODC | MEMBER] [options]"
- takes_optiongroups = {
- "sambaopts": options.SambaOptions,
- "versionopts": options.VersionOptions,
- "credopts": options.CredentialsOptions,
- }
-
takes_options = [
Option("--server", help="DC to join", type=str),
Option("--site", help="site to join", type=str),
@@ -130,12 +118,6 @@ class cmd_domain_level(Command):
synopsis = "%prog domain level (show | raise <options>)"
- takes_optiongroups = {
- "sambaopts": options.SambaOptions,
- "credopts": options.CredentialsOptions,
- "versionopts": options.VersionOptions,
- }
-
takes_options = [
Option("-H", help="LDB URL for database or target server", type=str),
Option("--quiet", help="Be quiet", action="store_true"),
@@ -321,12 +303,6 @@ class cmd_domain_machinepassword(Command):
synopsis = "%prog domain machinepassword <accountname>"
- takes_optiongroups = {
- "sambaopts": options.SambaOptions,
- "versionopts": options.VersionOptions,
- "credopts": options.CredentialsOptions,
- }
-
takes_args = ["secret"]
def run(self, secret, sambaopts=None, credopts=None, versionopts=None):
@@ -358,12 +334,6 @@ class cmd_domain_passwordsettings(Command):
synopsis = "%prog domain passwordsettings (show | set <options>)"
- takes_optiongroups = {
- "sambaopts": options.SambaOptions,
- "versionopts": options.VersionOptions,
- "credopts": options.CredentialsOptions,
- }
-
takes_options = [
Option("-H", help="LDB URL for database or target server", type=str),
Option("--quiet", help="Be quiet", action="store_true"),