summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-24 18:24:12 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-25 15:04:39 +0200
commita2d53262e835b0c74282d389b1dd6dad2395f0f1 (patch)
tree65ebb285631e320182c6905621f7ddb5fd84447d
parentf8e6bb46c005e82d5a8646e691de9282828005cc (diff)
downloadsamba-a2d53262e835b0c74282d389b1dd6dad2395f0f1.tar.gz
samba-a2d53262e835b0c74282d389b1dd6dad2395f0f1.tar.bz2
samba-a2d53262e835b0c74282d389b1dd6dad2395f0f1.zip
python-ntacls: Cope with ACL revision 4
This is the new revision with the hash of the posix or system ACL. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 25 15:04:39 CEST 2012 on sn-devel-104
-rw-r--r--source4/scripting/python/samba/ntacls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/ntacls.py b/source4/scripting/python/samba/ntacls.py
index 44cbbe9559..f3040472df 100644
--- a/source4/scripting/python/samba/ntacls.py
+++ b/source4/scripting/python/samba/ntacls.py
@@ -78,6 +78,8 @@ def getntacl(lp, file, backend=None, eadbfile=None, direct_db_access=True):
return ntacl.info.sd
elif ntacl.version == 3:
return ntacl.info.sd
+ elif ntacl.version == 4:
+ return ntacl.info.sd
else:
return smbd.get_nt_acl(file, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL | security.SECINFO_SACL)