From a2d53262e835b0c74282d389b1dd6dad2395f0f1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 24 Oct 2012 18:24:12 +1100 Subject: [PATCH] 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 Autobuild-Date(master): Thu Oct 25 15:04:39 CEST 2012 on sn-devel-104 --- source4/scripting/python/samba/ntacls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source4/scripting/python/samba/ntacls.py b/source4/scripting/python/samba/ntacls.py index 44cbbe95591..f3040472dfc 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) -- 2.34.1