Update Ldap Identity Source
Replaces the configuration of the LDAP identity source identified by identity-source-id.
As with creation, Installer validates connectivity to the LDAP server before saving; if the
probe fails, the request is rejected with 400 and the existing configuration is left
unchanged - fix the connection details and retry.
The id of the LDAP identity source to update, as returned by GET /iam/ldap-identity-sources.
The updated LDAP identity source configuration.
{
"domain_name": "corp.example.com",
"base_distinguished_name": "dc=corp,dc=example,dc=com",
"ldap_type": "ACTIVE_DIRECTORY",
"ldap_server": {
"url": "ldaps://ldap.corp.example.com:636",
"bind_identity": "[email protected]",
"password": "********",
"enabled": true
}
}
The LDAP identity source was updated and its connectivity was verified.
{
"_create_user": "string",
"_create_time": 0,
"_last_modified_user": "string",
"_last_modified_time": 0,
"_revision": 0,
"_resource_type": "string",
"_system_owned": false,
"id": "string",
"display_name": "string",
"description": "string",
"site_ids": [
"string"
],
"domain_name": "string",
"alternative_domain_names": [
"string"
],
"ldap_type": "string",
"base_distinguished_name": "string",
"ldap_server": {
"url": "string",
"certificates": [
"string"
],
"bind_identity": "string",
"password": "string",
"enabled": false
},
"connectivity_result": {
"result": "string",
"errors": [
{
"error_type": "string",
"message": "string"
}
]
}
}
The request body is missing a required field, contains an invalid value, or Installer could not connect to the LDAP server with the given configuration.
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
4XX and 5XX type errors with appropriate message
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"domain_name":"string","base_distinguished_name":"string","ldap_server":"object","ldap_type":"string"}' https://{api_host}/https://{api_host}:{port}/lh-appliance/iam/ldap-identity-sources/{identity-source-id}