name: Logon to CyberArk Vault using PAS Web Services SDK
cyberark_authentication:
api_base_url: "{{ CYBA_URL }}'
validate_certs: no
use_ldap_authentication: yes
username: "{{ CYBA_USERNAME }}"
password: "{{ CYBA_PASSWORD }}"
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.
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.