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:
parent
6255d57ce8
commit
c1f56feefb
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user