1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

netcmd: models: ensure that backlinks are always readonly

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Rob van der Linde 2023-11-22 15:35:38 +13:00 committed by Douglas Bagnall
parent 6255d57ce8
commit c1f56feefb
2 changed files with 7 additions and 2 deletions

View File

@ -26,9 +26,11 @@ from .model import Model
class Site(Model):
show_in_advanced_view_only = BooleanField("showInAdvancedViewOnly")
site_object_bl = DnField("siteObjectBL")
system_flags = IntegerField("systemFlags")
# Backlinks
site_object_bl = DnField("siteObjectBL", readonly=True)
@staticmethod
def get_base_dn(ldb):
"""Return the base DN for the Site model.

View File

@ -44,9 +44,12 @@ class ValueType(Model):
"msDS-ClaimIsValueSpaceRestricted")
claim_value_type = IntegerField("msDS-ClaimValueType")
is_possible_values_present = BooleanField("msDS-IsPossibleValuesPresent")
value_type_reference_bl = DnField("msDS-ValueTypeReferenceBL")
show_in_advanced_view_only = BooleanField("showInAdvancedViewOnly")
# Backlinks
value_type_reference_bl = DnField(
"msDS-ValueTypeReferenceBL", readonly=True)
@staticmethod
def get_base_dn(ldb):
"""Return the base DN for the ValueType model.