samba-tool: testparm doesn't take any credentials
authorAndrew Tridgell <tridge@samba.org>
Tue, 19 Jul 2011 01:19:59 +0000 (11:19 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Jul 2011 01:44:32 +0000 (11:44 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/netcmd/testparm.py

index 7a0e538ca295aa5373639eda2d937b69ee488560..9b8d207d3a1f63bda70ed296d38f99422ca826fb 100755 (executable)
@@ -46,6 +46,11 @@ class cmd_testparm(Command):
 
     synopsis = ""
 
+    takes_optiongroups = {
+        "sambaopts" : options.SambaOptions,
+        "versionops" : options.VersionOptions
+    }
+
     takes_options = [
         Option("--section-name", type=str,
                help="Limit testparm to a named section"),