From 6484e142dc673145fc12f06549d20121e615b7f0 Mon Sep 17 00:00:00 2001 From: Giampaolo Lauria Date: Tue, 30 Aug 2011 17:19:59 -0400 Subject: samba-tool: Added "ntacl" command Added "ntacl" command to substitute "acl nt" command Signed-off-by: Amitay Isaacs Signed-off-by: Andrew Bartlett --- source4/scripting/python/samba/netcmd/netacl.py | 4 ++-- source4/scripting/python/samba/netcmd/ntacl.py | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/netcmd/netacl.py b/source4/scripting/python/samba/netcmd/netacl.py index 65f38753e9..9138bc678a 100644 --- a/source4/scripting/python/samba/netcmd/netacl.py +++ b/source4/scripting/python/samba/netcmd/netacl.py @@ -23,12 +23,12 @@ 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() diff --git a/source4/scripting/python/samba/netcmd/ntacl.py b/source4/scripting/python/samba/netcmd/ntacl.py index d33dc9b9a6..1335644c79 100644 --- a/source4/scripting/python/samba/netcmd/ntacl.py +++ b/source4/scripting/python/samba/netcmd/ntacl.py @@ -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 [--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 [--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() -- cgit