cyberark / ansible-modules

Ansible Modules for CyberArk Privileged Account Security Web Service SDK
MIT License
37 stars 17 forks source link

cyberark_authentication.py is sending an empty payload - Collection cyberark.pas #8

Closed wilfil closed 3 years ago

wilfil commented 3 years ago

Summary

When trying to authenticate using LDAP, the payload is not being sent.

.ansible/collections/ansible_collections/cyberark/pas/plugins/modules/cyberark_authentication.py

Steps to Reproduce

[EXAMPLE]

Expected Results

Is expected to receive a cyberark_session json file with the token and other parameters, but the execution fails because no payload is defined with the username and password for the authentication.

Version/Tag number

Ansible.2.9.x

Additional Information

To solve the issue: I just added the line 188:

payload_dict = {"username": username, "password": password}

I will send a pull request in sequence.

wilfil commented 3 years ago

I sent the pull request to the collections repo, instead of this one.

https://github.com/cyberark/ansible-security-automation-collection/pull/33