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:
|
| ldap_port | No | Integer | The port on which the LDAP server listens for LDAP connections. Valid value: 389 or a port between 2000 and 65535. |
| base_dn | No | String | The base DN of the LDAP directory. |
| ras_enable | No | Integer | Whether to enable the LDAP Remote Access Service (RAS). Valid value:
|
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: 192.168.5.150:8088
Content-Type: application/json
{
"enable": 0
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}