cyberark / ansible-modules Goto Github PK
View Code? Open in Web Editor NEWAnsible Modules for CyberArk Privileged Account Security Web Service SDK
License: MIT License
Ansible Modules for CyberArk Privileged Account Security Web Service SDK
License: MIT License
When trying to authenticate using LDAP, the payload is not being sent.
.ansible/collections/ansible_collections/cyberark/pas/plugins/modules/cyberark_authentication.py
[EXAMPLE]
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.
Ansible.2.9.x
To solve the issue:
I just added the line 188:
payload_dict = {"username": username, "password": password}
I will send a pull request in sequence.
I'm getting AttributeError: module 'urllib' has no attribute 'quote' running Python 3.7. It still seems to work correctly against 2.7.5.
I'm trying to use the example:
- hosts: localhost
tasks:
- name: credential retrieval basic
cyberark_credential:
api_base_url: "http://10.10.0.1"
app_id: "TestID"
query: "Safe=test;UserName=admin"
register: {{ result }}
no_log: true
- name: Debug message
debug:
var: {{ result }}
Obviously, using the correct values for my setup.
I'm getting an error from Ansible:
JSON: Expecting value: line 1 column 1 (char 0)
Syntax Error while loading YAML.
found unacceptable key (unhashable type: 'AnsibleMapping')
The error appears to be in '[redacted]/cyberark.yml': line 26, column 21, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
query: "Safe=[redacted];UserName=admin"
^ here
There appears to be both 'k=v' shorthand syntax and YAML in this task. Only one syntax may be used.
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:
with_items:
- {{ foo }}
Should be written as:
with_items:
- "{{ foo }}"
It appears that using k=v pairs within the query is the way this is supposed to be done, but Ansible seems to complain about it. What am I doing wrong, here?
In a situation where multiple CyberArk servers are behind an F5 load balancer, with session persistence disabled, it is possible to send multiple requests and not get the expected result. Errors claiming that the session is invalid is common and the modules fail to work.
Providing a cookie during authentication, and making it part of the cyberarksession variable would allow for consistent use under these circumstances.
Hello!
Is there a plan to include other API types than account and login/logoff? I see that you can create and manage users in CyberArk, and you can even look up passwords, but I am at a loss as to how to create or generate accounts with any of these modules.
Where is the tasks defined to make this module actually useable? I only see meta and test folders in the current master (commit 15bb7aa)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.