# Trouble with Active D authentication settings

**URL:** <https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [April 12, 2019, 6:53pm UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691 "2019-04-12T18:53:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [April 12, 2019, 6:53pm UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691/1 "2019-04-12T18:53:17Z")

</div>

Trying to set up ver 7 and some of the new settings in the yml are confusing.

xpack.security.authc.realms:  
native.realm1:  
order: 0  
enabled: true

```
active_directory.realm2:
    dhp_ad:
      order: 1
      enabled: true
      domain_name: company.com
      url:
        - ldaps://company.com:636
        - ldaps://company.com:636
        - ldaps://company.com:636
        - ldaps://company.com:636
        - ldaps://company.com:636
        - ldaps://company.com:636
      load_balance:
        type: round_robin
      bind_dn: CN=company DC
      secure_bind_password: password
      ssl:
        certificate_authorities: ["config/certs/secure.pem"]

```

Does this look correct? I was getting some different info from the upgrade assistant and the 7 doc.

---

<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 19, 2019, 10:04am UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691/2 "2019-04-19T10:04:24Z")

</div>

Hi,

There are a couple of things that are wrong here:

- 

```auto
 active_directory.realm2:
  dhp_ad:

```

You have added two name identifiers for the realm, you need to keep either `realm2` or `dhp_ad` but not both.

- `secure_bind_password` is a secure setting and as such needs to be [added to the elasticsearch.keystore](https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html)

- `enabled: true` is not necessary, this is the default value.

You'd get the same information if you attempted to start elasticserach with the config above, as we do validate the configuration at startup.

> [@bigdamhero](#):
>
> some of the new settings in the yml are confusing.

Can you point out which part of the documentation or the settings were confusing to you? Maybe we can do a better job at documenting those.

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [April 19, 2019, 12:32pm UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691/3 "2019-04-19T12:32:05Z")

</div>

Thank you!! that was good info. To be clear.

I need either one of these:

active\_directory.realm2:

or

active\_directory.dhp\_ad:

or ??

active\_directory:  
dhp\_ad:

---

<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 19, 2019, 1:29pm UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691/4 "2019-04-19T13:29:29Z")

</div>

The syntax is `xpack.security.authc.realms.<realm_type>.<realm_name>:` . The realm type is `active_directory` since you want to use AD, and you can name your realm whatever you want, `realm2`, or `dhp_ad` , it doesn't matter, you need to pick 1 name though.

```auto
active_directory.dhp_ad:

```

is exactly the same as

```auto
active_directory:
  dhp_ad:

```

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [April 19, 2019, 1:30pm UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691/5 "2019-04-19T13:30:40Z")

</div>

thank you!!

---

<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:** [May 17, 2019, 1:37pm UTC](https://discuss.elastic.co/t/trouble-with-active-d-authentication-settings/176691/6 "2019-05-17T13:37:46Z")

</div>

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