pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
291 stars 91 forks source link

Radius menu with multiple levels #339

Closed theOriginalKlaatu closed 3 years ago

theOriginalKlaatu commented 3 years ago

Description When presented with a radius authentication menu in new-passession, if you select an option with sub-options, the module exits

To Reproduce Steps to reproduce the behavior:

  1. New-PASSession -Credential $Creds -BaseURI https://$CorePAS -type RADIUS -OTPMode Challenge
  2. Select option with sub-option

Expected behavior To accept second menu option

Screenshots & Console Output image



**Your Environment**
Include relevant details about your environment

* PowerShell Version: 5.1 and 7.1
* psPAS Version: 4.5.90
* CyberArk Version: 11.2.0.18
pspete commented 3 years ago

Hi @theOriginalKlaatu - is there a chance you can test the updated code currently published to the issue-339 branch, or the psPAS-v5.0.1.zip build artefact available from Appveyor?

I do not have a RADIUS implementation available to me which produces sub-options in the way you highlight, but have mocked the behaviour in the module's unit tests and provide this update after some test driven development based on those unit tests.

Any presented RADIUS challenge sub-options should now be able to be responded to.

theOriginalKlaatu commented 3 years ago

That sure seems to work in both 5.1 and 7.1.3. Thank you! I'll keep testing

pspete commented 3 years ago

Update promoted into the dev branch - it will be part of the next module release. Thanks for the report 👍