diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-20 14:51:46 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-30 17:17:19 +0100 |
commit | f843c04b0f2314ccedb4759c85721773845eb207 (patch) | |
tree | b38001b5d20ef1a5a702624db2be81fc05eb820c /source4 | |
parent | 8563348a01206874ff215a55d0c542912740e84b (diff) | |
download | samba-f843c04b0f2314ccedb4759c85721773845eb207.tar.gz samba-f843c04b0f2314ccedb4759c85721773845eb207.tar.bz2 samba-f843c04b0f2314ccedb4759c85721773845eb207.zip |
s4:netcmd/gpo.py: s/ntSecurityDescriptor/nTSecurityDescriptor
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/netcmd/gpo.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py index f70317ad82..656b2bd369 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 |