Code Monkey home page Code Monkey logo

ansible-modules's People

Contributors

cyberark-bizdev avatar enunez-cyberark avatar infamousjoeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-modules's Issues

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

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]

  • 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.

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.

Syntax Error in YAML - Query

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?

Cookie needed when session persistence is disabled

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.

Request for other API types (Safes, Accounts, Policies, etc.)

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.

Tasks missing

Where is the tasks defined to make this module actually useable? I only see meta and test folders in the current master (commit 15bb7aa)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.