pyaim icon indicating copy to clipboard operation
pyaim copied to clipboard

Truncated password containing commas

Open ethiquable opened this issue 4 years ago • 1 comments

Describe the bug The password string is truncated when it contains commas

To Reproduce Steps to reproduce the behavior:

  1. Change the password to contain a comma on Cyberark
  2. Use pyaim to retrieve the password
  3. Check response['Password'], it is truncated up to the comma

Expected behavior I would like to get the password even if it contains commas

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Red Hat 8
  • python 3.9.5
  • pyaim 1.2.9

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

ethiquable avatar Dec 16 '21 20:12 ethiquable

I believe this is because by default commas are used to separate values returned by Password SDK. I think they need to implement the handling of /d / -d parameter that lets you specify the delimiter for separating the output fields. See Syntax

I have patched the code in my implementation of pyaim to handle this separator specification but apparently we cannot contribute it back according to the README.md:

For the time being, only internal CyberArk contributions are being considered.

diaznet avatar Aug 17 '22 09:08 diaznet