- Community Home
- >
- Software
- >
- HPE OneView
- >
- Change default login domain back to local
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-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.