Getting Data In

how to reset the password using REST API

New Member

kindly suggest how to reset the password of splunk user using REST API

Tags (3)
0 Karma
1 Solution

SplunkTrust
SplunkTrust

SplunkTrust
SplunkTrust

New Member

if i want to change only admin password by supplying old and new password ... how this can be achieved through rest api

0 Karma

SplunkTrust
SplunkTrust

It's all in the docs http://docs.splunk.com/Documentation/Splunk/6.2.1/RESTREF/RESTaccessExamples#authentication.2Fusers.... read it, try it with a test user - succeed 😉

0 Karma

Contributor

In the search head i tried to change the password of a user using below command, i got the success xml response but with the new password i am not able to login.

curl -k -u admin:temp https://localhost:8089/servicesNS/nobody/search/storage/passwords/user1 -d password=pwd_temp

0 Karma

SplunkTrust
SplunkTrust

Just did that:

curl -k -u admin:changeme https://localhost:8089/services/authentication/users/admin -d password=changeme123

and it worked like a charm check the URL you used, looks different to mine...

New Member

ok thanks .. i think storage password section will me more appropriate for changing password

0 Karma