# Configure authentication with active directory

**URL:** <https://discuss.elastic.co/t/configure-authentication-with-active-directory/120667>\
**Category:** Elasticsearch\
**Created:** [February 20, 2018, 2:40pm UTC](https://discuss.elastic.co/t/configure-authentication-with-active-directory/120667 "2018-02-20T14:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flochon](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@flochon](https://discuss.elastic.co/u/flochon)\
**Post date:** [February 20, 2018, 2:40pm UTC](https://discuss.elastic.co/t/configure-authentication-with-active-directory/120667/1 "2018-02-20T14:40:13Z")

</div>

Hello,

I configured my active directory in Elasticsearch.yml like this:

```auto
xpack:
  security:
    authc:
      realms:
       native:
          type: native
          order: 0
       active_directory:
         type: active_directory
         order: 0
         domain_name: test.local
         url: ldap://test.local:389
         bind_dn: "CN=lol,OU=lol,OU=lol,OU=lol,DC=lol,DC=local"
         bind_password: pwd
         user_search:
           base_dn: "OU=_user,OU=user,OU=lol,dc=lol,dc=local"
         group_search:
           base_dn: "ou=Groups,ou=lol,dc=lol,dc=local"
         unmapped_groups_as_roles: true

```

I think my configuration is ok but Elasticsearch failed and I don't know why.  
Can someone help me ?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [February 20, 2018, 10:41pm UTC](https://discuss.elastic.co/t/configure-authentication-with-active-directory/120667/2 "2018-02-20T22:41:16Z")

</div>

> [@flochon](#):
>
> Can someone help me ?

Only if you provide more information.

What specifically isn't working?  
How did you test it?  
What error messages do you get?  
What version of Elasticsearch are you running?

---

<div class="post-metadata">

**Author:** ![flochon](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@flochon](https://discuss.elastic.co/u/flochon)\
**Post date:** [February 21, 2018, 7:52am UTC](https://discuss.elastic.co/t/configure-authentication-with-active-directory/120667/3 "2018-02-21T07:52:46Z")

</div>

Elasticsearch don't start. When I put the command "systemctl restart elasticsearch.service", the status of Elasticsearch is failed.

I follow the tutorial [https://www.elastic.co/guide/en/x-pack/current/active-directory-realm.html](https://www.elastic.co/guide/en/x-pack/current/active-directory-realm.html)

It's 6.2.

I get these errors:

```auto
[2018-02-21T08:50:11,786][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:50:22,443][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:50:32,835][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:50:43,292][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:50:53,794][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:51:04,299][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:51:14,803][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:51:25,444][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:51:35,919][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:51:46,321][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:51:56,825][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs
[2018-02-21T08:52:07,323][INFO][o.e.x.w.a.l.ExecutableLoggingAction] [logs-els-1] Found 1 errors in the logs

```

---

<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 21, 2018, 7:52am UTC](https://discuss.elastic.co/t/configure-authentication-with-active-directory/120667/4 "2018-03-21T07:52:54Z")

</div>

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