Edit LDAP Server Settings
Edit the LDAP server settings.
Request URL
POST {base_url}/{api_path}/ldap_server/update?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| enable | No | Integer | Whether to enable LDAP server. Valid value:
|
| base_dn | No | String | The base DN of the LDAP directory. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Example
Request example
POST /openapi/v1.0/ldap_server/update?access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"enable": 0
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}