From 7b5ba3013867ae77d516b5ac3cd264fbaf5ca372 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 5 Sep 2012 17:06:33 +1000 Subject: samba_tool: Fix ntacl get to correctly output in sddl --- source4/scripting/python/samba/netcmd/ntacl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/scripting') 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): -- cgit