Hi together,
I'm facing a Problem with the authentication. I'm using a search-plugin so I'm strictly bound to Version 2.4.
My Setup:
Elasticsearch is running in a Docker
After I install shield, I add a user
bin/shield/esusers adduser es_admin -p1234689 -r admin
when I list the user with esusers list, es_admin is listed.
I make the curl request for testing purpose:
 curl --user es_admin:12345689  -XGET 'server01.host.com:9200/search?pretty'
The result is :
{
  "error" : {
    "root_cause" : [ {
      "type" : "security_exception",
      "reason" : "unable to authenticate user [es_admin] for REST request [/search?pretty]",
      "header" : {
        "WWW-Authenticate" : "Basic realm=\"shield\" charset=\"UTF-8\""
      }
    } ],
    "type" : "security_exception",
    "reason" : "unable to authenticate user [es_admin] for REST request [/search?pretty]",
    "header" : {
      "WWW-Authenticate" : "Basic realm=\"shield\" charset=\"UTF-8\""
    }
  },
  "status" : 401
}
And this is how the elasticsearch.yaml is lookslike
http.host: 0.0.0.0
#shield.transport.filter.allow: ["x.x.x.x.x"]
#shield.transport.filter.deny: _all
shield:
  authc:
    realms:
      file1:
        type: file
        order: 0
What am I doing wrong?
Thank you in advance.