How to know LDAP connection successfully established

I have implemented x pack security. Also I have done some changes in elasticsearch.yml file for LDAP security. How to know LDAP security has enabled or not. I am trying to login with existing user name and password but not able to login. Please provide solution.

The elasticsearch server will provide logging when an authentication fails that can help you diagnose which security realm it was trying to use.

The default logging should be enough, but you can also increase the logging to see more details.

If you simply want to check that LDAP realm is enabled, you can look at the Usage API:

curl -u elastic -XGET 'http://localhost:9200/_xpack/usage?pretty'

and check security.realms.ldap in that output.

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