cybr-pypsm

CyberArk Privileged Session Manager RDPFile Generator


Keywords
cyberark, security, vault, psm, rdp, privileged, access, identity, pam, pim, pas
License
MIT
Install
pip install cybr-pypsm==1.0.3

Documentation

pyPSM

CyberArk Privileged Session Manager RDPFile Generator for Python 3

Usage

Supported Parameters

  • base_uri (required)
  • username (required)
  • password (required)
  • address (required)
  • authtype (cyberark, ldap, windows, radius)
  • otpmode (required if authtype='radius' - push, challenge, append - default: push)
  • otp (required if authtype='radius' and otpmode=challenge or otpmode=append)
  • platformid (default: PSMSecureConnect)
  • verify (default: True)

Generate RDPFile for PSM-RDP Connections

from pypsm import RDP

# Configure the connection details
psmconnect = RDP(base_uri='https://cyberark.joegarcia.dev/', username='user', password='password123', address='10.0.4.48', authtype='radius', otpmode='push')
# Retrieve RDPFile data from CyberArk and create `connect.rdp` locally
psmconnect.connect()

Secure Handling of Username + Password

It is recommended to use environment variables within the script that can be populated at runtime. These should not be placed into script variables and should be used just-in-time (JiT).

License

MIT