Access elasticsearch api with ldap authentication -


i have set elasticsearch shield plugin , ldap authentication. how can access api? mean, when curl localhost:9200/some_index/_search, how can send ldap info alongside?

for example,

shield: authc: realms: ldap1: type: ldap order: 0 url: "ldaps://ldap.example.com:636" user_dn_templates: - "cn={0}, ou=users, o=marketing, dc=example, dc=com" - "cn={0}, ou=users, o=engineering, dc=example, dc=com" group_search: base_dn: "dc=example,dc=com" files: role_mapping: "/mnt/elasticsearch/group_to_role_mapping.yml" unmapped_groups_as_roles: false

what if user account cn=abc, ou=users, o=marketing, dc=example, dc=com want curl elasticsearch api? curl -u "cn=abc, ou=users, o=marketing, dc=example, dc=com" , sending password?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -