diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-10-24 18:24:12 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-10-25 15:04:39 +0200 |
commit | a2d53262e835b0c74282d389b1dd6dad2395f0f1 (patch) | |
tree | 65ebb285631e320182c6905621f7ddb5fd84447d /source4/scripting | |
parent | f8e6bb46c005e82d5a8646e691de9282828005cc (diff) | |
download | samba-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
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/ntacls.py | 2 |
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) |