Configure authentication with active directory


#1

Hello,

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

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 ?


(Tim Vernum) #2

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?


#3

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

It's 6.2.

I get these errors:

[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

(system) #4

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