Remove AllowableValues for read-only LDAP values
Given that today LDAP doesn't support modification of the
AccountProviderType, and AuthenticationType parameters, providing
AllowableValues is a bit of a misnomer, and a waste.
Tested:
Work in progress.
Would like to get concensus on this, then will verify correct responses
and error codes
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I6d2d38b581ce5a9f7b4106582aeb4ec3fc9c424a
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 2bb1316..061c1a2 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -107,14 +107,10 @@
std::string service = "LDAPService";
json_response["LDAP"] = {
{"AccountProviderType", service},
- {"AccountProviderType@Redfish.AllowableValues",
- nlohmann::json::array({service})},
{"ServiceEnabled", confData.serviceEnabled},
{"ServiceAddresses", nlohmann::json::array({confData.uri})},
{"Authentication",
{{"AuthenticationType", "UsernameAndPassword"},
- {"AuthenticationType@Redfish.AllowableValues",
- nlohmann::json::array({"UsernameAndPassword"})},
{"Username", confData.bindDN},
{"Password", nullptr}}},
{"LDAPService",