# Ldap user authen sam account option

**URL:** <https://discuss.elastic.co/t/ldap-user-authen-sam-account-option/250767>\
**Category:** Elasticsearch\
**Created:** [October 2, 2020, 9:04am UTC](https://discuss.elastic.co/t/ldap-user-authen-sam-account-option/250767 "2020-10-02T09:04:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [October 2, 2020, 9:04am UTC](https://discuss.elastic.co/t/ldap-user-authen-sam-account-option/250767/1 "2020-10-02T09:04:54Z")

</div>

Hi all  
our organization have some specific rule to the naming of dn  
for example mine would me "cn=Something something,ou=test..." and my samaccount name would be [soso@test.com](mailto:soso@test.com)  
and now when i have the role mapping to authen with ldap whenever i tried to login i have to use the "Something something".  
What i want to have is that the account name would be soso instead of "Something something".  
From what i heard from our dc admin, he said that i need an option call samaccount to set this. Is this option available on elastic.  
If not then is there is any other method to achive what i want.

Thanks you for your time.

---

<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:** [October 30, 2020, 9:04am UTC](https://discuss.elastic.co/t/ldap-user-authen-sam-account-option/250767/2 "2020-10-30T09:04:55Z")

</div>

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