samba-tool: Added "ntacl" command
authorGiampaolo Lauria <lauria2@yahoo.com>
Tue, 30 Aug 2011 21:19:59 +0000 (17:19 -0400)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 9 Sep 2011 05:24:02 +0000 (15:24 +1000)
Added "ntacl" command to substitute "acl nt" command

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba-tool
source4/scripting/python/samba/netcmd/netacl.py
source4/scripting/python/samba/netcmd/ntacl.py

index 51a6d64890b8280dc6d7d843f315304895c30f00..59c0b72b13f144817a68f93cb7fe552e59683561 100755 (executable)
@@ -35,6 +35,7 @@ from samba.netcmd.fsmo import cmd_fsmo
 from samba.netcmd.gpo import cmd_gpo
 from samba.netcmd.group import cmd_group
 from samba.netcmd.ldapcmp import cmd_ldapcmp
+from samba.netcmd.ntacl import cmd_ntacl
 from samba.netcmd.rodc import cmd_rodc
 from samba.netcmd.spn import cmd_spn
 from samba.netcmd.testparm import cmd_testparm
@@ -57,6 +58,7 @@ class cmd_sambatool(SuperCommand):
     subcommands["gpo"] = cmd_gpo()
     subcommands["group"] = cmd_group()
     subcommands["ldapcmp"] = cmd_ldapcmp()
+    subcommands["ntacl"] = cmd_ntacl()
     subcommands["rodc"] = cmd_rodc()
     subcommands["spn"] = cmd_spn() 
     subcommands["testparm"] =  cmd_testparm()
index 65f38753e9fe00b4a269df319a2ba527e7bbafba..9138bc678adac9d5a454e844b3786853bfa71160 100644 (file)
 from samba.netcmd import (
     SuperCommand,
     )
-from samba.netcmd.ntacl import cmd_nt_acl
+from samba.netcmd.ntacl import cmd_ntacl
 from samba.netcmd.dsacl import cmd_dsacl
 
 class cmd_acl(SuperCommand):
     """NT ACLs manipulation"""
 
     subcommands = {}
-    subcommands["nt"] = cmd_nt_acl()
+    subcommands["nt"] = cmd_ntacl()
     subcommands["ds"] = cmd_dsacl()
index d33dc9b9a6d9f898bf53329e0b1421d101ce7a0b..1335644c79eff61ecd3429ae584e7555d9013e70 100644 (file)
@@ -37,7 +37,9 @@ from samba.netcmd import (
     Option,
     )
 
-class cmd_acl_set(Command):
+
+
+class cmd_ntacl_set(Command):
     """Set ACLs on a file"""
     synopsis = "%prog set <acl> <file> [--xattr-backend=native|tdb] [--eadb-file=file] [options]"
 
@@ -74,7 +76,8 @@ class cmd_acl_set(Command):
             raise CommandError("Unable to read domain SID from configuration files")
 
 
-class cmd_acl_get(Command):
+
+class cmd_ntacl_get(Command):
     """Set ACLs on a file"""
     synopsis = "%prog get <file> [--as-sddl] [--xattr-backend=native|tdb] [--eadb-file=file] [options]"
 
@@ -99,10 +102,11 @@ class cmd_acl_get(Command):
             acl.dump()
 
 
-class cmd_nt_acl(SuperCommand):
+
+class cmd_ntacl(SuperCommand):
     """NT ACLs manipulation"""
 
     subcommands = {}
-    subcommands["set"] = cmd_acl_set()
-    subcommands["get"] = cmd_acl_get()
+    subcommands["set"] = cmd_ntacl_set()
+    subcommands["get"] = cmd_ntacl_get()