enablement. However, some schemas might use an integer value in an
attribute. In this situation, set user_enabled_default to the integer
value that represents a user being enabled.
- default: true
+ default: "true"
ldap_user_enabled_invert:
type: boolean
description: |
ldap_user_filter: Optional[str]
ldap_user_enabled_attribute: Optional[str]
ldap_user_enabled_mask: Optional[int]
- ldap_user_enabled_default: Optional[bool]
+ ldap_user_enabled_default: Optional[str]
ldap_user_enabled_invert: Optional[bool]
ldap_group_objectclass: Optional[str]
ldap_group_tree_dn: Optional[str]
ldap_tls_cacert_base64: Optional[str]
ldap_tls_req_cert: Optional[str]
+ @validator
+ def validate_ldap_user_enabled_default(cls, v):
+ if v:
+ if v not in ["true", "false"]:
+ raise ValueError('must be equal to "true" or "false"')
+ return v
+
class KeystoneCharm(CharmedOsmBase):
def __init__(self, *args) -> NoReturn: