Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #108 add authn ldap support #109

Merged
merged 11 commits into from
Apr 16, 2021

Conversation

infamousjoeg
Copy link
Owner

No description provided.

@infamousjoeg infamousjoeg added enhancement New feature or request customer This issue submitted by customer labels Apr 7, 2021
@infamousjoeg infamousjoeg self-assigned this Apr 7, 2021
Copy link
Collaborator

@AndrewCopeland AndrewCopeland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at my comments :D

cmd/conjur.go Show resolved Hide resolved
docs/cybr_conjur_logon.md Show resolved Hide resolved
pkg/cybr/conjur/logon.go Outdated Show resolved Hide resolved
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AndrewCopeland AndrewCopeland merged commit 71ff495 into v0.1.3-beta Apr 16, 2021
@AndrewCopeland AndrewCopeland mentioned this pull request Apr 20, 2021
AndrewCopeland added a commit that referenced this pull request Apr 21, 2021
* 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>
infamousjoeg added a commit that referenced this pull request May 7, 2021
* 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>

* Improve logon with 2FA

Currenly when trying to autenticate against a CyberArk with 2FA enabled the
request request fails with the following error:

    Failed to Logon to the PVWA. Failed to authenticate to the PAS REST API.
    Received non-200 status code '500'

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.

* Fix lint errors and add missing file from previous commit

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

* Fix panic when body response is nil

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>
infamousjoeg added a commit that referenced this pull request Jun 7, 2021
* Fixes #108 add authn ldap support (#109)

- Fixes #108 add authn ldap support (#109)

* Adding 6 CEM sub-commands (#105) (#111)

* Resolves #106

Co-authored-by: Quincy Cheng <quincy.cheng@gmail.com>

* Create alias's and simplified command for CEM

* update docs

Co-authored-by: Andrew Copeland <50109276+AndrewCopeland@users.noreply.github.com>
Co-authored-by: Quincy Cheng <quincy.cheng@gmail.com>
Co-authored-by: AndrewCopeland <andcope1995@gmail.com>
infamousjoeg added a commit that referenced this pull request Jun 7, 2021
* Fixes #108 add authn ldap support (#109)

- Fixes #108 add authn ldap support (#109)

* Adding 6 CEM sub-commands (#105) (#111)

* Resolves #106

Co-authored-by: Quincy Cheng <quincy.cheng@gmail.com>

* Create alias's and simplified command for CEM

* update docs

* Fix #117 list safes response (#118)

* fix responses for ListSafe

* value not values

Co-authored-by: Andrew Copeland <50109276+AndrewCopeland@users.noreply.github.com>
Co-authored-by: Quincy Cheng <quincy.cheng@gmail.com>
Co-authored-by: AndrewCopeland <andcope1995@gmail.com>
@infamousjoeg infamousjoeg deleted the fix-108-add-authn-ldap-support branch October 5, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer This issue submitted by customer enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants