s4:dsdb:tests: add AclVisibiltyTests
commitf92b61ec8265f9008950eeea6200c3d38f07fbfd
authorStefan Metzmacher <metze@samba.org>
Wed, 7 Oct 2020 11:21:06 +0000 (7 13:21 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Oct 2020 08:22:01 +0000 (27 08:22 +0000)
treeb8934daf93373c3f381026e6b200d5101b981e88
parenta89a78aa609115a770113d2d23e99ad7e3172b54
s4:dsdb:tests: add AclVisibiltyTests

This tests a sorts of combinations in order to
demonstrate the visibility of objects depending on:

- with or without fDoListObject
- with or without explicit DENY ACEs
- A hierachy of objects with 4 levels from the base dn
- SEC_ADS_LIST (List Children)
- SEC_ADS_LIST_LIST_OBJECT (List Object)
- SEC_ADS_READ_PROP
- all possible scopes and basedns

This demonstrates that NO_SUCH_OBJECT doesn't depend purely
on the visibility of the base dn, it's still possible to
get children returned und an invisible base dn.

It also demonstrates the additional behavior with "List Object" mode.
See [MS-ADTS] 5.1.3.3.6 Checking Object Visibility

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 06d134406739e76b97273db3023855150dbaebbc)
selftest/knownfail.d/ldap-acl-visibility [new file with mode: 0644]
source4/dsdb/tests/python/acl.py
source4/selftest/tests.py