summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-05 17:06:33 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-05 14:12:19 +0200
commit7b5ba3013867ae77d516b5ac3cd264fbaf5ca372 (patch)
tree2c28611ece5152a8fe24ba828408c5e3eec54229 /source4/scripting
parentc19208e93ce401b5ef0b752b32648926f9f39824 (diff)
downloadsamba-7b5ba3013867ae77d516b5ac3cd264fbaf5ca372.tar.gz
samba-7b5ba3013867ae77d516b5ac3cd264fbaf5ca372.tar.bz2
samba-7b5ba3013867ae77d516b5ac3cd264fbaf5ca372.zip
samba_tool: Fix ntacl get to correctly output in sddl
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/ntacl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/ntacl.py b/source4/scripting/python/samba/netcmd/ntacl.py
index 661af80f30..dbda85bbb4 100644
--- a/source4/scripting/python/samba/netcmd/ntacl.py
+++ b/source4/scripting/python/samba/netcmd/ntacl.py
@@ -21,7 +21,7 @@ import samba.getopt as options
from samba.dcerpc import security, idmap
from samba.ntacls import setntacl, getntacl
from samba import Ldb
-from samba.ndr import ndr_unpack
+from samba.ndr import ndr_unpack, ndr_print
from samba.samdb import SamDB
from samba.samba3 import param as s3param, passdb, smbd
from samba import provision
@@ -107,9 +107,9 @@ class cmd_ntacl_get(Command):
acl = getntacl(lp, file, xattr_backend, eadb_file)
if as_sddl:
anysid = security.dom_sid(security.SID_NT_SELF)
- self.outf.write(acl.info.as_sddl(anysid)+"\n")
+ self.outf.write(acl.as_sddl(anysid)+"\n")
else:
- acl.dump()
+ self.outf.write(ndr_print(acl))
class cmd_ntacl_sysvolreset(Command):