def METHOD_NAME(self) -> bool:
    """Check if DOMAIN_PASSWORD_COMPLEX is enabled"""
    root_dn = self.get_domain_root_dn()
    try:
        root_attrs = self._connection.extend.standard.paged_search(
            search_base=root_dn,
            search_filter="(objectClass=*)",
            search_scope=BASE,
            attributes=["pwdProperties"],
        )
        root_attrs = list(root_attrs)[0]
    except (LDAPAttributeError, LDAPUnwillingToPerformResult, KeyError, IndexError):
        return False
    raw_pwd_properties = root_attrs.get("attributes", {}).get("pwdProperties", None)
    if not raw_pwd_properties:
        return False
    try:
        pwd_properties = PwdProperties(raw_pwd_properties)
    except ValueError:
        return False
    if PwdProperties.DOMAIN_PASSWORD_COMPLEX in pwd_properties:
        return True
    return False