# Case insensitive LDAP integration for Elasticsearch

**URL:** <https://discuss.elastic.co/t/case-insensitive-ldap-integration-for-elasticsearch/219604>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 17, 2020, 11:41am UTC](https://discuss.elastic.co/t/case-insensitive-ldap-integration-for-elasticsearch/219604 "2020-02-17T11:41:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dantonag](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dantonag/32/44130_2.png) [@dantonag](https://discuss.elastic.co/u/dantonag)\
**Post date:** [February 17, 2020, 11:41am UTC](https://discuss.elastic.co/t/case-insensitive-ldap-integration-for-elasticsearch/219604/1 "2020-02-17T11:41:04Z")

</div>

Hello,  
we have configured the company LDAP integration for our instance of ES (6.8).

Our problem is that LDAP is case sensitive, and many users wrongly insert their username in lowercase. Is there a way to avoid this behaviour (making LDAP integration case insensitive)?

You can see attached the error generated when inserting a lowercase username.  
Thanks

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f4c324c581caf9290882c804965daed9d16cab0f.png)

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 17, 2020, 12:09pm UTC](https://discuss.elastic.co/t/case-insensitive-ldap-integration-for-elasticsearch/219604/2 "2020-02-17T12:09:04Z")

</div>

Hi there,

This is unfortunately a known issue. The underlying cause is that role mapping in ES is case sensitive (for the `username` property) while LDAP is not. This is something that we want to fix and you can keep track of the progress and resolution by following the [relevant issue in Github](https://github.com/elastic/elasticsearch/issues/48120)

---

<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:** [March 16, 2020, 12:09pm UTC](https://discuss.elastic.co/t/case-insensitive-ldap-integration-for-elasticsearch/219604/3 "2020-03-16T12:09:04Z")

</div>

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