Closed infamousjoeg closed 10 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Hi @infamousjoeg, I was trying to get cybr-cli working with an MFA/RADIUS protected instance and found this and #114 while troubleshooting. The issues fixed in the original PR seem to still be present and prompts for MFA challenges just get 403s. It's been a while, and I'm not sure why this didn't make the original merge, but any chance on getting this actually merged in?
@Infraded, extremely interesting. It seems like it was staged for release in an early beta version, somehow got untracked from the project and orphaned, then 2 years later when I was cleaning branches, it was deleted. Let me reopen this, restore the branch, and re-investigate.
Once I get the branch synchronized with main
, I'll ask for a quick test to ensure the fixes on the branch are still good to go.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@Infraded,
Let's continue this over on #214 where I added this code into the current code base. I am hoping you can help test the build.
V0.1.3 beta (#113)
Fixes #108 add authn ldap support (#109)
Fixes #106 Adding 6 CEM sub-commands (#105) (#111)
Co-authored-by: Quincy Cheng quincy.cheng@gmail.com Co-authored-by: Joe Garcia infamousjoeg@users.noreply.github.com
Currenly when trying to autenticate against a CyberArk with 2FA enabled the request request fails with the following error:
In function
httpjson.SendRequestRay
the response body isn't returned, so the caller function never finds the correct error code.After the previous fix, the second call, the one with the otp code still fails with 403. Debugging it seems that we need to store the cookies between the two logon calls. So a go context is added to the functions.
This commit fixes the go lint error related to key type in context and it adds a missing file from previous commit not uploaded by error.
Fix type error in comment
Missing comment on Cookie function
Added missing comment
Try to catch nil response body on httpjson.SendRequestRaw function
Co-authored-by: Andrew Copeland 50109276+AndrewCopeland@users.noreply.github.com Co-authored-by: Quincy Cheng quincy.cheng@gmail.com Co-authored-by: Joe Garcia infamousjoeg@users.noreply.github.com