Update LDAP Configuration
post
/api/v1/configuration/ldapConfig/{id}
Updates the LDAP configuration.
Request
Supported Media Types
- multipart/form-data
Path Parameters
-
id: string
Unique LDAP configuration identifier
Query Parameters
-
removeTLSRootCACert(optional): boolean
Default Value:
false -
setActiveLdapConfig(optional): boolean
Default Value:
false
Form Parameters
-
ldapTLSRootCACert: string
The root certificate authority (CA) certificate for the LDAP server in a .crt file
-
payload:
Response
Supported Media Types
- application/json
200 Response
OK
400 Response
Bad Request
Root Schema : Error
Type:
objectError Information.
Show Source
-
errors(optional):
array errors
list of errors
-
message:
string
A human-readable error string.
-
status:
string
A short error status that defines the error, meant for programmatic parsing.
-
warnings(optional):
array warnings
list of warnings
401 Response
Unauthorized
Root Schema : Error
Type:
objectError Information.
Show Source
-
errors(optional):
array errors
list of errors
-
message:
string
A human-readable error string.
-
status:
string
A short error status that defines the error, meant for programmatic parsing.
-
warnings(optional):
array warnings
list of warnings
409 Response
Operation conflict
Root Schema : Error
Type:
objectError Information.
Show Source
-
errors(optional):
array errors
list of errors
-
message:
string
A human-readable error string.
-
status:
string
A short error status that defines the error, meant for programmatic parsing.
-
warnings(optional):
array warnings
list of warnings
500 Response
Internal Server Error
Root Schema : Error
Type:
objectError Information.
Show Source
-
errors(optional):
array errors
list of errors
-
message:
string
A human-readable error string.
-
status:
string
A short error status that defines the error, meant for programmatic parsing.
-
warnings(optional):
array warnings
list of warnings
Examples
This endpoint is used to update the specified LDAP configuration in your Blockchain platform.
The following example shows how to update the name of a LDAP configuration by submitting a POST request on the REST resource using cURL.
curl -X POST \ http://<hostname>:<port>/api/v1/configuration/ldapConfig/<unique LDAP configuration ID> \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F 'payload=<Request Body>'
Example of the Request Body
The following example shows the contents of the request body in JSON format:
{
"ldapId": "212880b2-4b81-4cc3-9c41-9bd34cd29e25",
"ldapName": "testLDAPchanged",
"ldapType": "OpenLDAP",
"ldapHost": "<host IP address>",
"ldapPort": 389,
"ldapTLSEnabled": false,
"ldapBaseDN": "dc=example,dc=org",
"ldapBindDN": "cn=admin,dc=example,dc=org",
"ldapBindPassword": "<bind password>",
"userNameAttribute": "cn",
"userClassName": "person",
"groupNameAttribute": "cn",
"groupMembershipAttribute": "member",
"groupClassName": "groupOfNames",
"connectTimeout": 20000
}
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{
"status": "200",
"message": "Successfully updated LDAP Configuration [testLDAPchanged]"
}