python/ntacls: we only need security.SEC_STD_READ_CONTROL in order to get the ACL
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Apr 2019 15:07:20 +0000 (17:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 May 2019 07:16:25 +0000 (07:16 +0000)
commit15032ec6df1abbb53f1b1d5377aab369f83ae707
tree50036e3c2b80d8b6bec6f8c1bb5b938dfab78e2b
parent706aba5bf62e674ae12786f6ab275752b8714464
python/ntacls: we only need security.SEC_STD_READ_CONTROL in order to get the ACL

We should avoid security.SEC_FLAG_MAXIMUM_ALLOWED otherwise
we may get NT_STATUS_SHARING_VIOLATION when we run
'samba-tool domain backup online' against a Windows DC.
Windows DCs have hidden folders for the NtFrs or Dfsr services,
which are locked by the running service.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13917

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/ntacls.py