- Community Home
- >
- Software
- >
- HPE OneView
- >
- Resetting administrator password
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP