# Fail to configure Xpack AD Realms

**URL:** <https://discuss.elastic.co/t/fail-to-configure-xpack-ad-realms/229818>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [April 26, 2020, 7:38am UTC](https://discuss.elastic.co/t/fail-to-configure-xpack-ad-realms/229818 "2020-04-26T07:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 27, 2020, 8:30am UTC](https://discuss.elastic.co/t/fail-to-configure-xpack-ad-realms/229818/2 "2020-04-27T08:30:38Z")

</div>

You have showed that the `esuser` credentials work which is greate but you have not mentioned anything regarding how you are attempting to authenticate with `testuser` and how this is failing.

- How are you trying to authenticate with `testuser` ? Directly with curl or in a browser ? via kibana ?
- Which format are you using for the username ? As in what do you pass in as a username ?

Please set `logger.org.elasticsearch.xpack.security.authc.ldap` to `TRACE` and share some of the logs here with us.

---

_[View the full topic](https://discuss.elastic.co/t/fail-to-configure-xpack-ad-realms/229818)._
