Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Extension Plugins / LDAP

Query LDAP config

Read the LDAP sign-in settings.

Returns the LDAP sign-in settings shown under LDAP settings in the console.

Method and path POST /plugin/datafor-ldap/api/application/query
Permission Administrator user type; the LDAP plugin must be installed
Content type application/json

Example

curl -u admin:password -X POST \
  "http://localhost:28080/datafor/plugin/datafor-ldap/api/application/query" \
  -H "Content-Type: application/json" -d '{}'
{
  "success": true,
  "code": "200",
  "data": {
    "enable": "1",
    "url": "ldap://ldap.example.com:389",
    "initial": "com.sun.jndi.ldap.LdapCtxFactory",
    "authtype": "simple",
    "dn": "cn=admin,dc=example,dc=com",
    "user_base": "cn=${username},dc=example,dc=com",
    "inituser": "1",
    "initroles": ["SYS_Reader", "Sales"]
  }
}

The fields are described on Save LDAP config. The bind password is not returned in clear text.

Related: LDAP Integration Configuration