From f843c04b0f2314ccedb4759c85721773845eb207 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 20 Nov 2012 14:51:46 +0100 Subject: s4:netcmd/gpo.py: s/ntSecurityDescriptor/nTSecurityDescriptor Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source4/scripting/python/samba/netcmd/gpo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/scripting') diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py index f70317ad82a..656b2bd3695 100644 --- a/source4/scripting/python/samba/netcmd/gpo.py +++ b/source4/scripting/python/samba/netcmd/gpo.py @@ -389,13 +389,13 @@ class cmd_list(Command): try: gmsg = self.samdb.search(base=g['dn'], scope=ldb.SCOPE_BASE, attrs=['name', 'displayName', 'flags', - 'ntSecurityDescriptor']) + 'nTSecurityDescriptor']) except Exception: self.outf.write("Failed to fetch gpo object %s\n" % g['dn']) continue - secdesc_ndr = gmsg[0]['ntSecurityDescriptor'][0] + secdesc_ndr = gmsg[0]['nTSecurityDescriptor'][0] secdesc = ndr_unpack(security.descriptor, secdesc_ndr) try: @@ -465,7 +465,7 @@ class cmd_show(Command): except Exception: raise CommandError("GPO '%s' does not exist" % gpo) - secdesc_ndr = msg['ntSecurityDescriptor'][0] + secdesc_ndr = msg['nTSecurityDescriptor'][0] secdesc = ndr_unpack(security.descriptor, secdesc_ndr) self.outf.write("GPO : %s\n" % msg['name'][0]) @@ -971,7 +971,7 @@ class cmd_create(Command): # Get new security descriptor msg = get_gpo_info(self.samdb, gpo=gpo)[0] - ds_sd_ndr = msg['ntSecurityDescriptor'][0] + ds_sd_ndr = msg['nTSecurityDescriptor'][0] ds_sd = ndr_unpack(security.descriptor, ds_sd_ndr).as_sddl() # Create a file system security descriptor @@ -1123,7 +1123,7 @@ class cmd_aclcheck(Command): fs_sd = conn.get_acl(sharepath, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL, security.SEC_FLAG_MAXIMUM_ALLOWED) - ds_sd_ndr = m['ntSecurityDescriptor'][0] + ds_sd_ndr = m['nTSecurityDescriptor'][0] ds_sd = ndr_unpack(security.descriptor, ds_sd_ndr).as_sddl() # Create a file system security descriptor -- cgit