Hi all, I am running into an issue on a newly installed cluster running elasticsearch 5.4. After installing x-pack on a node and restarting the service, I am attempting to change the password, but the default that is present in the documentation (changeme) isn't working for me.
I am typing in and getting the results below:
curl -XPUT -u elastic 'http://localhost:9200/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d '{ "password": "whatnewpasswordwillbe" }'
Enter host password for user 'elastic':
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "failed to authenticate user [elastic]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
}
],
"type" : "security_exception",
"reason" : "failed to authenticate user [elastic]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
},
"status" : 401
}
At the password prompt I am entering changeme as outlined in the documentation and still receiving a 401 error.