s4-samba-tool: Ensure we also sync the SACL as well as the DACL during sysvolreset
authorAndrew Bartlett <abartlet@samba.org>
Tue, 4 Sep 2012 07:17:34 +0000 (17:17 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Sep 2012 07:52:23 +0000 (09:52 +0200)
source4/scripting/python/samba/ntacls.py

index ac4aad0725921351d310a628bb2be25f1c7fc775..38c31c63c075d9aff02c22823a1233491452e017 100644 (file)
@@ -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):