# LDAP Authentication Failed

**URL:** <https://discuss.elastic.co/t/ldap-authentication-failed/130558>\
**Category:** Elasticsearch\
**Created:** [May 4, 2018, 5:06am UTC](https://discuss.elastic.co/t/ldap-authentication-failed/130558 "2018-05-04T05:06:17Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Post date:** [May 7, 2018, 6:48am UTC](https://discuss.elastic.co/t/ldap-authentication-failed/130558/8 "2018-05-07T06:48:02Z")

</div>

Hi @ikakavas,  
Thanks for your support.  
I have declared the role\_mapping in the .yml as below:

```auto
kibana_dashboard_only_user: 
  - "OU=users" 
  - "CN=Paul Stephen"

```

And also declared the role\_mapping file in elasticsearch.yml:

```auto
          files:
            role_mapping: "C:/ELK/elasticsearch-6.2.2/elasticsearch-6.2.2/config/x-pack/role_mapping.yml"
          unmapped_groups_as_roles: false   

```

Logs are as follows:

```auto
[2018-05-07T11:31:42,890][DEBUG][o.e.x.s.a.l.LdapRealm] [node-1] realm [active_directory] authenticated user [AC85234], with roles [[]]

```

But still am able to access the other tabs on Kibana, Is there anything wrong with my mappings. Please let me know. Thanks !

---

_[View the full topic](https://discuss.elastic.co/t/ldap-authentication-failed/130558)._
