Hi forum,
Just upgraded top 5.4.3 and added x-pack plugins - I cant seem to create a new user, as I need a the elastic user's password to do the calls to add new users to access kibana (now I have to enter a UID and PW, which I used to delegate to NGINX) - all gone a bit chicken and egg - and elastic/changeme dont seem to work. Newbie - be patient thanks
curl -XPOST 'localhost:9200/_xpack/security/user/johnsmith?pretty' -H 'Content-Type: application/json' -d'
{
"password" : "q1w2e3r4",
"roles" : [ "admin" ],
"full_name" : "John Smith",
"email" : "john@smith.com",
}
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "missing authentication token for REST request [/_xpack/security/user/johnsmith?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type" : "security_exception",
"reason" : "missing authentication token for REST request [/_xpack/security/user/johnsmith?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status" : 401
}