summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-04 17:17:34 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-04 09:52:23 +0200
commit30253c11cca5be8b5eaddeb12f1a749315928679 (patch)
treeb58a38197d602095ece59f6fcbc3a981e690bf56 /source4/scripting
parent9983ad7a80477d8aaaa16488a93dffc6a32dd1ef (diff)
downloadsamba-30253c11cca5be8b5eaddeb12f1a749315928679.tar.gz
samba-30253c11cca5be8b5eaddeb12f1a749315928679.tar.bz2
samba-30253c11cca5be8b5eaddeb12f1a749315928679.zip
s4-samba-tool: Ensure we also sync the SACL as well as the DACL during sysvolreset
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/ntacls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/ntacls.py b/source4/scripting/python/samba/ntacls.py
index ac4aad0725..38c31c63c0 100644
--- a/source4/scripting/python/samba/ntacls.py
+++ b/source4/scripting/python/samba/ntacls.py
@@ -105,7 +105,7 @@ def setntacl(lp, file, sddl, domsid, backend=None, eadbfile=None, use_ntvfs=True
samba.xattr_native.wrap_setxattr(file, xattr.XATTR_NTACL_NAME,
ndr_pack(ntacl))
else:
- smbd.set_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL, sd)
+ smbd.set_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL | security.SECINFO_SACL, sd)
def ldapmask2filemask(ldm):