diff options
author | Tim Beale <timbeale@catalyst.net.nz> | 2019-01-15 14:09:15 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-02-04 09:50:09 +0100 |
commit | e682347bc1863a800373703f33866ea9c1f11626 (patch) | |
tree | 06c5097e64e9a346b4b1c516eb7ce69843cbe3b5 /python | |
parent | 6158ca6e2994c5090312cf4677024b43df6bcc7e (diff) | |
download | samba-e682347bc1863a800373703f33866ea9c1f11626.tar.gz |
ntacls: Pass correct use_ntvfs through to setntacl()
We were already checking the smb.conf to see if it uses the NTVFS file
server or the default smbd server. However, we weren't passing this
through to the setntacl() call.
This fixes the problem we noticed with 'samba-tool gpo aclcheck' failing
after a restore.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f3fe96fc2e2d942b4a2e241777b5ee12b2295b97)
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/ntacls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/ntacls.py b/python/samba/ntacls.py index 99245737529..5bf646caf9f 100644 --- a/python/samba/ntacls.py +++ b/python/samba/ntacls.py @@ -454,7 +454,8 @@ class NtaclsHelper: def setntacl(self, path, ntacl_sd): # ntacl_sd can be obj or str - return setntacl(self.lp, path, ntacl_sd, self.dom_sid) + return setntacl(self.lp, path, ntacl_sd, self.dom_sid, + use_ntvfs=self.use_ntvfs) def _create_ntacl_file(dst, ntacl_sddl_str): |