s4:dsdb/schema: remember if a backlink attribute is not allowed on class 'top'
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Mar 2023 10:30:55 +0000 (11:30 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Mar 2023 07:16:34 +0000 (07:16 +0000)
commitbd3596233f26cdc2e3c591bccf09b2cdceeac023
treebae4d8c65a9723a9056afa25bbbe925e61e1a62f
parent21f4317acb9917e9f9394e6c44fcc5ba46f92dfb
s4:dsdb/schema: remember if a backlink attribute is not allowed on class 'top'

Backlink attributes which are not "allowed" in objectClass 'top'
are always possible, but only visible by default based on the
real objectClass.

In order to avoid pay the cost for finding out if a backlink
should be visible or not, we remember a 'bool bl_maybe_invisible'
both on the forward link as well as the backlink dsdb_attribute.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/schema/schema.h
source4/dsdb/schema/schema_set.c