- Community Home
- >
- Software
- >
- HPE OneView
- >
- Resetting administrator password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2019 04:23 AM - edited 03-21-2019 06:23 AM
03-21-2019 04:23 AM - edited 03-21-2019 06:23 AM
Using the REST API to reset the admininstrator password:
curl --insecure \ --header "content-type: application/json" \ --header "X-API-Version: ${currentVersion}" \ --data '{ "newPassword" : "newpassw0rd" }' \ --request PUT ${OneView}/rest/users/administrator/resetPassword | jq -r "." { "data": {}, "nestedErrors": [], "errorSource": null, "recommendedActions": [ "Retry the operation from a local client." ], "details": "", "message": "Request not sent from a local client.", "errorCode": "REQUEST_FORBIDDEN_ERROR" }
What is considered a local client to an appliance device?
Apparently this really isn't possible. Just easier to change from the gui.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2019 10:41 PM
03-21-2019 10:41 PM
SolutionHi @BradV
Not sure if you wanted to change the Administrator's password to a different one and hence used this API.
There are three APIs in all to change the Administrator's password:
1. PUT /rest/users lets you change the password to a new one.
{
"currentPassword" : "xxxxxxx",
"password" : "yyyyyy",
"type" : "UserAndPermissions",
"userName" : "administrator"
}
2. POST /rest/users/changePassword
This one is used only during first login to the appliance, forcing the administrator to change their password from the default to something else
3. PUT /rest/users/administrator/resetPassword
This API does not require any authorization (mentioned in the API doc).
It is usually used to reset the administrator's password if the adminisrator forgets their password.
It is available for use only after getting into the appliance via maintenance console using a challenge / response.
This is hence referred to as "being local" to the appliance when invoking this API.
Sorry that the "local client" reference in the error confused you.
We'll look at improving the error message.
Let me know if you have further questions.
Regards.
Bhaskar
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 01:54 AM
03-22-2019 01:54 AM
Re: Resetting administrator password
Thanks! That helped a lot! We have to periodically change passwords. I let to have everything documented so that even someone not familiar with the topic can execute. So, having a command line method to change the administrator's password helps! :)
Regards,
Brad