mirror of
https://github.com/samba-team/samba.git
synced 2025-07-28 11:42:03 +03:00
s3-smbd: Add security_info_wanted argument to get_nt_acl_no_snum
I need to get at the owner, group, DACL and SACL when testing correct ACL storage. Andrew Bartlett
This commit is contained in:
@ -79,7 +79,7 @@ def getntacl(lp, file, backend=None, eadbfile=None, direct_db_access=True):
|
||||
elif ntacl.version == 3:
|
||||
return ntacl.info.sd
|
||||
else:
|
||||
return smbd.get_nt_acl(file)
|
||||
return smbd.get_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL | security.SECINFO_SACL)
|
||||
|
||||
|
||||
def setntacl(lp, file, sddl, domsid, backend=None, eadbfile=None, use_ntvfs=True):
|
||||
|
Reference in New Issue
Block a user