Get Active Directory configuration

GET /platform/configuration/security/realms/active-directory/{realm_id}

Retrieves a single Active Directory security realm configuration.

Path parameters

  • realm_id string Required

    The Elasticsearch Security realm identifier.

Responses

  • 200 application/json

    The Active Directory configuration was successfully retrieved

    Hide headers attributes Show headers attributes
    Hide response attributes Show response attributes object
    • id string Required

      The identifier for the security realm

    • name string Required

      The friendly name of the security realm

    • urls array[string] Required

      The Active Directory URLs used to authenticate against, in the format ldap[s]://server:port. Note that ldap and ldaps protocols cannot be mixed together.

    • domain_name string Required

      Specifies the domain name of the Active Directory (the forest root domain name).

    • bind_anonymously boolean Required

      When true, bindDb credentials are ignored

    • bind_dn string

      The distinguished name of the user that is used to bind to the Active Directory and perform searches.

    • The user password that is used to bind to the Active Directory server.

    • The Active Directory load balancing behavior

      Hide load_balance attributes Show load_balance attributes object
      • type string

        The behavior to use when there are multiple Active Directory URLs defined

        Values are failover, dns_failover, round_robin, or dns_round_robin.

      • When using dns_failover or dns_round_robin as the load balancing type, this setting controls the amount of time to cache DNS lookups. Defaults to 1h.

    • The SSL trusted CA certificate bundle URL. The bundle should be a zip file containing a single keystore file 'keystore.ks' in the directory '/active_directory/:id/truststore', where :id is the value of the [id] field.

    • The password to the certificate bundle URL truststore

    • The format of the truststore file. Should be jks to use the Java Keystore format or PKCS12 to use PKCS#12 files. The default is jks.

      Values are jks or PKCS12.

    • The role mapping rules associated with the security realm

      Hide role_mappings attributes Show role_mappings attributes object
      • default_roles array[string] Required

        The default roles applied to all users

      • rules array[object] Required

        The role mapping rules to evaluate

        Elasticsearch Security Active Directory role mapping rule

        Hide rules attributes Show rules attributes object
        • type string Required

          The type of role mapping rule

          Values are user_dn or group_dn.

        • roles array[string] Required

          The roles that are applied when the mapping rule is successfully evaluated

        • value string Required

          The value to match when evaluating this rule

    • enabled boolean

      When true, enables the security realm

    • order integer(int32)

      The order that the security realm is evaluated

    • Advanced configuration options in YAML format. Any settings defined here will override any configuration set via the API. Note that all keys should omit the 'xpack.security.authc.realms.active_directory.{realm_id}' prefix. For example, when the realm ID is set to 'ad1', the advanced configuration 'xpack.security.authc.realms.active_directory.ad1.ssl.verification_mode: full' should be added as 'ssl.verification_mode: full'.

  • 404 application/json

    The realm specified by {realm_id} cannot be found. (code: security_realm.not_found)

    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Value is security_realm.not_found.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

GET /platform/configuration/security/realms/active-directory/{realm_id}
curl \
 --request GET 'https://{{hostname}}/api/v1/platform/configuration/security/realms/active-directory/{realm_id}' \
 --user "username:password"