en-US - - English

RDM (Devolutions Remote Desktop)

When RDM creates a connection, it can check out the password the connection needs from an external password manager and inject it in place of the password. This needs some settings first.

To test how this works, see the test data at the end of this page.

Prerequisites for checking out passwords from PassMan

  1. pcheckout.exe is present at the configured path.
    1. Download: pcheckout.exe (Searching by folder works only on PassMan systems above version 4.7.1.)
  2. The pcheckout.ps1 PowerShell script. Paste its content on the Events/Before Opening tab of the RDP type session.
    1. Download: pcheckout.ps1 PowerShell
  3. The Custom variables items are filled in correctly.
  4. The password of the PassMan user was given at the first connection.
    1. The PassMan user's password is not saved in RDM. It is available only in RDM's memory, and it is deleted when you exit RDM.
  5. The RDP session is set up correctly:
    1. Credentials field (General/Credentials) set to the user name and password type
    2. Host name field (General/Host)
    3. User name field (General/Username)
    4. Events/Before opening/Execute PowerShell
      1. PowerShell script: the content of the pcheckout.ps1 PowerShell script pasted in
      2. the Wait for exit checkbox selected

Checking out passwords from your own PassMan

If a service provider has a PassMan and stores its customers' sign-in details in it, the service provider can check out the passwords stored in its PassMan directly from RDM. That is, it can sign in to the customer's target system directly from RDM.

The name of the RDM folder (for example, Customer1) controls which system you sign in to and with which password. This way, you can even use the same server names for different customers.

Searching by folder

This setting takes effect when the PASSMAN_USE_RDM_FOLDER_FOR_CHECKOUT custom variable is set to TRUE.

How it works:

  1. pcheckout.exe signs in to the service provider's PassMan with the password you enter in the dialog that opens. The details of that PassMan are set in the custom variables.
  2. PassMan searches for the given target name and account pair in the PassMan folder whose name is the folder name set in RDM.
  3. If it finds them, it returns the password to RDM.
  4. RDM connects to the target system or target server with the password it received.

Multi-factor sign-in to PassMan

For signing in to PassMan this way, the only second factor you can set up is the Push notification type, where you approve or reject the sign-in in the PassMan Secure Login mobile app.
RDM does not tell you that the second factor (2FA) needs approval. Only the PassMan mobile app tells you that the sign-in has to be approved.

Checking out passwords from the customer's PassMan through the service provider's PassMan

If the service provider and the customer each have their own PassMan, the service provider can get the passwords stored in the customer's PassMan directly from RDM. It does this with the customer's PassMan sign-in details, stored in the service provider's own PassMan.

  1. The program searches for the details needed to sign in to PassMan in the PassMan folder whose name is the same as the folder name set in RDM.
  2. The name of the target must contain the word passman, and the target can have only one account, with its password.
    1. If the PassMan account does not belong to the local provider, enter the authentication provider in the account's description, in the format Provider: "provider name". Include the quotation marks.

How it works:

  1. pcheckout.exe signs in to the service provider's PassMan with the password you enter in the dialog that opens. The details of that PassMan are set in the custom variables.
  2. In the service provider's PassMan, pcheckout.exe searches the folder whose name is the same as the folder name set in RDM for the details needed to sign in to that customer's PassMan.
  3. The name of the target must contain the word passman, and the target can have only one account, with its password.
  4. If pcheckout.exe finds the target, it signs in to the customer's PassMan with the password stored there. It then checks out the password stored in the customer's PassMan for the target and the account name (the RDM Username) given in the RDM entry, and returns it to RDM, so that RDM can connect to the target system.

pcheckout errors

  1. Foldername is not unique - the folder name set in RDM occurs more than once in PassMan.
  2. Too many accounts on target - the user sees more than one account on the target set up for the PassMan sign-in.

Setting up the custom variables

  1. Add the following data to the list under File/Settings/Applications/Custom variables.
    1. Required variables:
      1. PASSMAN_PCHECKOUT_FILEPATH - for example d:\prog\pmsl\local_client\dist\pcheckout.exe
        1. the path where the pcheckout program or programs are
        2. the file name of the pcheckout program you want to use
      2. PASSMAN_URL
        1. The URL of your PassMan system. The client that runs RDM must be able to reach the PassMan server on the network.
      3. PASSMAN_USERNAME
        1. Your PassMan user name: the one you sign in to PassMan with, which has access to the target, account and password data you want to use from RDM.
    2. Optional variables:
      1. PASSMAN_PROVIDERS - the name of the provider; local by default.
        1. For a provider other than local, this variable is also required, unless Smart login is turned on in PassMan (Padmin: Security settings > Other security settings > Smart login).
        2. This parameter is case sensitive: it must match exactly, including upper and lower case.
      2. PASSMAN_USE_RDM_FOLDER_FOR_CHECKOUT
        1. If TRUE, PassMan searches for the given host ONLY in the folder with the same name as the RDM folder.
        2. If FALSE, the search runs in the folders where the PassMan user has the password checkout right. If PassMan has hosts (targets) with the same name, you get back the password of the account of the first target found.
      3. PASSMAN_DEBUG - TRUE/FALSE
        1. If TRUE, the parameters used to connect to PassMan, the data of the process and any errors are shown during the connection.
        2. If FALSE, no extra data is shown; only errors are.

RDM session settings

  1. Session type: RDP session
  2. Credentials: choose the user name and password type.
  3. Hostname: enter the name of the target stored in PassMan.
  4. Username: enter the user name stored in PassMan.

IMPORTANT: The host name and the user name are case sensitive.

Test data in the public PassMan demo system

The sign-in details of the demo system are not given on this page. Replace the placeholders below with the details of the PassMan system you test with.

Data for setting up RDM with an RDP type entry

  1. Custom variables:
    1. PASSMAN_PCHECKOUT_FILEPATH: c:\temp\rdm\pcheckout.exe
    2. PASSMAN_URL: <your PassMan URL>
    3. PASSMAN_USERNAME: <your PassMan user name>
    4. PASSMAN_PROVIDERS: <provider name>
    5. PASSMAN_DEBUG: TRUE
  2. Data of the RDP entry:
    1. Host name field (General/Host): <target>:<port>
    2. User name field (General/Username): <account>
  3. At the start of the connection, enter the password of the PassMan user: <your PassMan password>

Testing from the command line

Command to run (with pcheckout_debug.exe in the current folder or on the path):

pcheckout_debug.exe <account>@<target>:<port> --passman_url <your PassMan URL> --passman_username <your PassMan user name> --passman_provider <provider name> --passman_password <your PassMan password>