# LDAP integration with elk

**URL:** <https://discuss.elastic.co/t/ldap-integration-with-elk/244049>\
**Category:** Elasticsearch\
**Created:** [August 6, 2020, 2:50pm UTC](https://discuss.elastic.co/t/ldap-integration-with-elk/244049 "2020-08-06T14:50:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh123](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@suresh123](https://discuss.elastic.co/u/suresh123)\
**Post date:** [August 6, 2020, 2:50pm UTC](https://discuss.elastic.co/t/ldap-integration-with-elk/244049/1 "2020-08-06T14:50:43Z")

</div>

```auto
Hi Experts,

I am trying to integrate LDAP with ELK stack.

I have modified below script in elasticsearch.yml 

xpack.security.enabled: true
xpack:
  security:
    authc:
      realms:
        ldap:
          ldap1:
            order: 0
            url: "ldap://url"
            bind_dn: "cn=dedicated_user,cn=Users,dc=company_name,dc=com"
            user_search:
              base_dn: "dc=company_name,dc=com"
              filter: "(cn={0})"
            group_search:
              base_dn: "dc=Company_name,dc=com"
            files:          
              role_mapping: "role_mapping.yml"
            unmapped_groups_as_roles: false

#vi role_mapping.yml

superuser:
  - "cn=dedicated_user,cn=Users,dc=Company_name,dc=com"

/usr/share/elasticsearch/bin/elasticsearch-keystore add xpack.security.authc.realms.ldap.ldap1.secure_bind_password

Am getting below error from elasticsearch log         
[INFO][o.e.x.s.a.AuthenticationService] [ip-xxxxxx] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic] 

Can anyone help how to access kibana dashboard with ldap user          

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 3, 2020, 2:50pm UTC](https://discuss.elastic.co/t/ldap-integration-with-elk/244049/2 "2020-09-03T14:50:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
