Query LDAP Server Settings

Query the LDAP server settings.

Request URL

GET {base_url}/{api_path}/ldap_server/get?access_token={access_token}

Request parameters

No request parameters. Send the request URL directly to query LDAP server settings.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
setting Object<LDAP_Setting> The LDAP server settings.
LDAP_Setting
Parameter Type Description
enable Integer Whether the LDAP server is enabled.
  • 0: Disabled.
  • 1: Enabled.
ldap_host String The IP address or hostname of the LDAP server.
ldap_mode String The connection protocol used between LDAP Server and LDAP Clients. The value is fixed as LDAP.
ldap_port Integer The port used for LDAP connections to the LDAP server.
ldaps_port Integer The port used for LDAPs connections to the LDAP server.
base_dn String The base DN of the LDAP directory.
ras_enable Integer Whether the LDAP Remote Access Service (RAS) is enabled.
  • 0: Disabled.
  • 1: Enabled.
ras_host String The remote access address of the LDAP Server.
ras_ldap_port String The port used for remote LDAP connections.
ras_ldaps_port String The port used for remote LDAPs connections.
ras_mode String The connection protocol used for remote connections between LDAP Server and LDAP Clients. The value is fixed as LDAP & LDAPs.

Example

Request example

GET /openapi/v1.0/ldap_server/get?access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "submsg": "",
    "invalid_param_list": null,
    "setting": {
        "enable": 1,
        "ldap_host": "172.19.0.33",
        "ldap_mode": "LDAP",
        "ldap_port": 14507,
        "base_dn": "dc=docs,dc=proxy,dc=test,dc=yeastarcloud,dc=com",
        "ras_enable": 0,
        "ras_host": "msg-test.proxy1.ptest3.yeastarcloud.com",
        "ras_ldap_port": "15011",
        "ras_ldaps_port": "15054",
        "ras_mode": "LDAP & LDAPs",
        "ldaps_port": 14508
    }
}