Hi everybody,
I need test for a script to change passwords of the built-in users.
I test on a single-node cluster.
I understand that i have to
-
stop service on the node
-
create bootstrap.password
printf "tititi" | /usr/share/elasticsearch/bin/elasticsearch-keystore add -x "bootstrap.password"
-
start service
-
change the password with api
curl -k -uelastic:tititi -XPUT -H 'Content-Type: application/json' 'https://IP:9200/_xpack/security/user/kibana/_password' -d '{ "password":"tototo" }'
curl -k -uelastic:tititi -XPUT -H 'Content-Type: application/json' 'https://IP:9200/_xpack/security/user/elastic/_password' -d '{ "password":"tototo" }'
But it doesnt work for me; it seems keeping my first test with
elasticsearch-setup-passwords interactive
I remove all the application many times but same error of authenticate
Is anybody knows how reset, reinitialize my first password ? please
. that way i will can test my script of installation and modify the built-in users passwords
thanks a lot for the help