HewlettPackard / HewlettPackard/HPEStoragePowerShellToolkit
Connect-HPESAN -ArrayType Nimble don't work on arrays with 2-Factor Authentication enabled.
- Dominant language
- PowerShell
- Stars
- 11
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Connecting to Nimble arrays that has 2-Factor Authentication enabled, fails as there is no way to enter the OTP verification code.
HPEStoragePowerShellToolkit is 3.5.0.0
Output looks like this.
PS C:\BraAttHa\HPEStorage> Connect-HPESAN xxxxxx.xxx.xx -ArrayType Nimble
cmdlet Connect-HPESAN at command pipeline position 1
Supply values for the following parameters:
Credential
User: xxxxxxx
Password for user xxxxxxx: ****
Connect-NSGroup: C:\BraAttHa\HPEStorage\Connection.ps1:500
Line |
500 | … Connect-NSGroup -group $ArrayNameOrIPAddress -credential …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to connect with array xxxxxx.xxx.xx { "messages": [ { "code": "SM_http_forbidden",
| "severity": "error", "text": "The request is forbidden given the credentials." }, { "code":
| "SM_otp_need_code", "severity": "info", "arguments": { "otp_message": "Enter verification code: " },
| "text": "Verification code is required." } ] }.Exception.Message
Cheers
Mårten
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.