s4:dsdb:acl_read: make use of aclread_check_object_visible() for the search base
commit376fd7e1c0f0191e48732297d6062e98cbf78407
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Oct 2020 13:10:33 +0000 (6 15:10 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Oct 2020 12:17:33 +0000 (26 12:17 +0000)
treeef4c8f6e9be67c5894e9c4b13cb04e6ae9b913cf
parentf6af56ad68a416e4d8e0ee374036a6fcbe36fe91
s4:dsdb:acl_read: make use of aclread_check_object_visible() for the search base

We should only have one place to do access checks.

Use 'git show -w' to see the minimal diff.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit faff8e6c89777c38443e561235073c336cfb2e9c)
source4/dsdb/samdb/ldb_modules/acl_read.c