- Community Home
- >
- Software
- >
- HPE OneView
- >
- Change default login domain back to local
-
-
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
- Report Inappropriate Content
03-22-2019 03:18 AM
03-22-2019 03:18 AM
I goofed when connecting OneView to our active directory. So, I need to disconnect and connect correctly. However, before I disconnect, OneView is insisting that I change the default login domain. So, I tried:
# Follow instructions in: OneView-API_Get_Session_Credentials.txt curl --insecure \ --header "content-type: application/json" \ --header "X-API-Version: ${currentVersion}" \ --header "auth: ${sessionID}" \ --data '{ "name" : "local" }' \ --request POST ${OneView}/rest/logindomains/global-settings/default-login-domain | jq -r '.' { "data": {}, "nestedErrors": [], "errorSource": null, "recommendedActions": [ "Correct the JSON as appropriate array or collection and try the request again." ], "details": "The JSON sent in the request is not a valid array or collection.", "message": "The JSON can not be mapped to array or collection.", "errorCode": "INVALID_JSON_ELEMENT" }
but my data is not correct. The rest api reference for this is a little lacking. Anyone know the correct JSON to use to set the default login domain back to local?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 07:47 AM
03-22-2019 07:47 AM
SolutionHad a ticket opened for this, got the answer in case anyone else is looking:
curl --insecure \ --header "content-type: application/json" \ --header "X-API-Version: ${currentVersion}" \ --header "auth: ${sessionID}" \ --data '"LOCAL"' \ --request POST ${OneView}/rest/logindomains/global-settings/default-login-domain | jq -r '.'
I think the documentation could be a little more clear. He did say that "LOCAL" needs to be in call caps.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP