s4:dsdb:acl_read: make use of aclread_check_object_visible() for the search base
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Oct 2020 13:10:33 +0000 (15:10 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Oct 2020 08:22:01 +0000 (08:22 +0000)
commitee5b2e3be9063f787c7302100ce04fba4f5fe3f5
tree6f6e6d23c4ef24c854cfb99aff2b88afcb709678
parent24e0a440a9331f676cdeabf38f307fec281c86f3
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