Implemented

RDM Shortcuts for paste

avatar

Hello,

Im looking for an option to setup a keyboard hotkey for auto paste logon credentials directly on an active destination, but i didnt found it so far in RDM settings > user interface > keyboard.
This function is very usefull for us while working via remote.

Is it possible in RDM to configure such a thing?

Best Regards,
Andreas

All Comments (31)

avatar

Hello Andreas,

Thank you for contacting us on that matter!

You should be able to paste your credentials using the "CTRL + V" key combination. Do you experience any issues when you use this method? Also, which version of RDM and what type of Data Source you are currently using? Are you pasting these credentials on the login page of your web, RDP, or SSH connections?

Best regards,

James Lafleur

avatar

Hi James

Thanks for your Answer.
Haha, yes i know that Shortcut, thanks ;-)
Were migrating from Password Safe to Devolution Server with RDM and the Users are used to use the direct paste Combination for Username and Password.
You can configure there a directly paste Method (Example CTRL+Shift+U for direct insert Username) and now the Pilot Testusers are asking for this Pasting Method. I didnt find something like that, only for getting the Credentials into the clipboard.

Best Regards,
Andreas

avatar

Hello Andreas,

Thank you for your reply!

In order to see if that is something that can be implemented in RDM, we would like to first confirm the way it currently works in Password Safe to see if that is something that can be done in RDM.

In short, you would select a credential in RDM, then go in an external application (or in RDM), do the shortcut and it will copy the credentials and paste them automatically?

Best regards,

James Lafleur

avatar

Hi James

Yes, exactly. An entry must always be selected first in RDM.
There are several Options to Paste directly in Password Safe:
forum image
Those Options are very, very usefull and the most used feature in our Company.

Also it looks that its not possible to configure own Keysets in RDM. Or maybe i do something wrong?

Do you need more Informations?

Best Regards,
Andreas

avatar

Hello Andreas,

Thanks a lot for the details and for the examples. I think this is a very interesting idea. Currently we have entries for macros in RDM, but we don't have the ability to assign macros directly to shortcuts as is possible in Password Safe. We have a section in our options for keyboard shortcut assignments (File > Options > User Interface > Keyboard) so I'm thinking we could add it there.

I've opened a ticket so we can add this to RDM. We'll update this thread once we have an update on the feature.

Regards,

Hubert Mireault

avatar

Hello,
I can confirm that this is one of the most popular features in the Password Safe software in our company as well. I am currently doing a migration from PSR to RDM and I am really sad that this feature is not available anymore. We specialize in development and system engineering. My colleages and myself use this feature many many times a day.
Is there already a way to get this working e.g. with a macro?
Best regards

avatar

Hello,

At the moment you could achieve something like this with a macro, it just wouldn't be as convenient as with a keyboard shortcut. Here is what I think the flow would be with what we currently have:

  1. Create a "typing macro" entry. This will be the macro you want to execute. This would be something like this: $USERNAME${TAB}$PASSWORD${ENTER}
  2. Make sure the macro you created has the execution mode to "execute in previous window"
  3. Create your credential entry in RDM. The most common type is the Username/Password type.


And when you want to execute the macro, you would need to do this

  1. Outside of RDM, focus the field you want to autofill. This is important, as RDM will try to execute the macro in the previous window.
  2. In RDM, select the credential entry you want to autofill elsewhere
  3. Right click > Macros/Scripts/Tools > Your Macro. This will run the macro, replacing $USERNAME$ and $PASSWORD$ by the values contained within the credential entry.


With the keyboard shortcut feature we want to work on, it will help simplify the second part of the process. Let me know if you have any questions!

Regards,

Hubert Mireault

avatar

Hey Hubert

Thank you very much for that input, that looks very interessting.

I have 3 Questions:

  • How can i configure a central Macro which is available for all Vaults?
  • And how can i configure a Keyboard Shortcut which is running the specific Macro?
  • Is there a list with all available Commands/Variables for Macros?


Im missing in the following documentation the Field Variables: Event Auto Typing Macro (devolutions.net)
And when im using $USERNAME${TAB}$PASSWORD$ it pastes me the username, a tab and then plain text $PASSWORD$.

Best Regards,
Andreas

avatar

Hello Andreas,

Let me answer your three questions and give you a bit more information:

  • What you could do currently to have access to the macro from anywhere, if you are on a datasource that supports it, is put the macro in your user vault. You will also need to enable the "allow macro/script/tools usage from user vault" setting, located in the system settings:

forum image

This will allow you to execute the macro you have stored in your user vault on an entry from a shared vault. As a note regarding that, I just found out that specifically in the case of credentials, this option doesn't work. This is a bug and we'll be fixing this soon.

  • At the moment it's not possible to configure a keyboard shortcut to execute a specific macro. The ticket we've opened previously in this thread aims to provide this functionality.


  • You can access the list of specific keys on the URL you linked (here). For the variables, if you edit any entry, you will see the "variables" button:

forum image
This will give you a window where you can see what variables are available. When used in a macro, they will resolve according to the selection you've made, which is what the macro will be executed against.

As for $PASSWORD$ not resolving, this is normal. By default, resolving the $PASSWORD$ variable is not enabled for security reasons. You will need to ensure a few things to allow for the variable to resolve:

  • In System Settings > Password Policy, you will need to enable the following two options:

forum image

  • In your Credential entry, ensure that the user has the appropriate rights to view the password
  • In your Credential entry, you must check "allow password in variables", which is in the Security Settings tab
  • If executing your macro on, for example, an RDP that refers to a credential entry, you will need "allow password in variables" on both the RDP and the credential entry


I hope this answers your questions on the current functionality of typing macros in RDM!

Regards,

Hubert Mireault

avatar

Hi Hubert

Thank you for the details.
Ive configured everything exact like you mentioned, but my Macros still only types $PASSWORD$.

Macro Config:
forum image

Entry:
forum image

Running via Right-Click > Macros/Script/Tools > Paste Username & Password

Result in Notepad:
forum image

System Settings:
forum image

Using Versions:
RDM 2021.2.16.0
DVLS 2021.1.20.0

Any idea why this dont work for us?
We need this function urgently because our Supporters need them very often for inserting strong Passwords on remote Consoles in hypervisors.

Best Regards,
Andreas

avatar

Hello Andreas,

Did you make sure to enable "allow password in variables" on the credential entry as well?

forum image

This is required alongside the change in the system settings. Any entry on which you want to be able to resolve the $PASSWORD$ variable requires this option to be checked.

Regards,

Hubert Mireault

avatar

Hi Hubert

Thank you, that did the Trick!
It looks like, that all the existent Entries has this Option not enabled. Is it maybe possible to activate this option by default?
In this case, im wondering how to get the Value via DVLS Module. When i compare the returned Data between set and not set value, my powershell window doesnt returns any difference by comparing Get-DSEntry -VaultID GUID -EntryId GUID before and after changing the value.

Also another Question:
It looks like that the typing macro isnt working for remote consoles like vmware.
Is there another option to paste a password from RDM? The main problem is, that copy/paste doesnt work via remote consoles by default.

Best Regards,
Andreas

avatar

Hello Andreas,

Glad this works for you!

The best way to have this option enabled by default on new entries would be to create your entries with a template. If the option is set in the template, it will also be set when creating an entry from that template.
For your already existing entries, you could run a Powershell script to set the value. This can be done even within RDM. You can find the batch action for running a custom powershell command here: select the entries you want to modify > right click > edit > edit (special actions) > custom powershell command. Then the script would look something like this:

$connection.AllowPasswordVariable = $True;
$RDM.Save();


Regarding the Get-DSEntry powershell method, I will get back to you, I've contacted the team in charge.

For the typing macro not working for vmware remote consoles, unfortunately we don't have an alternative at the moment. The typing macro itself should simulate keystrokes, it isn't simply a copy+paste, so maybe there is another thing blocking it from working. Is this something that worked with the feature in Password Safe?

Regards,

Hubert Mireault

avatar

Hi Hubert

Thank you for the Input.
I think i will wait for the DVLS Powershell Option, because we have allready over 200k Entries in all Vaults (will be a "little" faster with DVLS Module).

Yes, the Paste Option works well in Password Safe, also in remote Consoles. I dont think there is something blocking it, because PWSafe still works.
Would be great if those Macros could be enhanced to get it working in remote consoles and also get some shortcut possibilities for it!

Best Regards,
Andreas

avatar

Hello Andreas,

The DVLS team got back to me and you should be able to achieve the change with the following in the DVLS Powershell module:

Get-DSEntry -AsRDMConnection


This will let you get the full "connection" object. Then in this object you want to set AllowPasswordVariable to true. Afterwards to save the entry you can use this method:

Update-DSEntryBase


Make sure you are on the 2021.7.0 branch of the module, which I think you already are from seeing your other thread. If this doesn't work or you need additional help, let us know.

Regarding the macros not working in vmware consoles, we'll have to see what other techniques we could use for this kind of scenario. We should be able to reproduce this internally as I know we have some vmware environments.


Regards,


Hubert Mireault

avatar

Hello Andreas,

Here is the detailed information, as well as the steps on how to change the property using the DVLS module.

  1. Retrieve the connection information
  2. Convert it from XML to a PS object
  3. Update the connection section
  4. Convert the connection section in XML
  5. Serialize the data and set it in the connection info
  6. Save the connection info, converted into JSON, back to the DVLS


Since an example is easier to understand:

$ConnectionInfo = (Get-DSEntry -EntryId '3d0c68f4-d1d4-46bb-a10c-197b01a70d73' -AsRDMConnection).Body.data.connectionInfo

$Data = Convert-XMLToPSCustomObject ([xml]$ConnectionInfo.data)

$Data.Connection | Add-Member -NotePropertyName 'AllowPasswordVariable' -NotePropertyValue 'true' -Force

$DataXml = (Convert-PSCustomObjectToXML $Data.Connection)

$ConnectionInfo.data = Convert-XMLToSerializedString $DataXml

$res = Invoke-WebRequest -Uri 'http://localhost/dps/api/connection/save' -Method 'PUT' -Body (ConvertTo-Json $ConnectionInfo) -ContentType 'application/json' -WebSession $Global:WebSession


Best regards,

Richard Boisvert

avatar

Hi All

Is there any News about the Shortcut possibility for direct Paste Username and/or Password?

Best Regards,
Andreas

avatar

Hello Andreas,

If we don't have any problems implementing it, it should make it in our next major RDM version, planned for release early next year (January/February, most likely).

Regards,

Hubert Mireault

avatar

Huge Thanks, Hubert!

Best Regards,
Andreas

avatar

Hello,

We've implemented the macro shortcuts feature. It will be included in our next major update.

Regards

Jonathan Del Signore

avatar

Hi Jonathan

Thanks for the great News! Do you have a Release Date?
Looking forward for the Update.

@Richard Boisvert
Your snipped works, thanks. Is there also an Option to check, if the Entry has already this permission set? Otherwise i will update every Entry the whole time when the Script runs.

Thanks,
Andreas

avatar

Hello Andreas,

Unfortunately we don't have an exact release date yet. We're still aiming for January/February.

Regards

Jonathan Del Signore

avatar

Hi

Small Question:
Is it fixed that the Password Insert Function via Macro is able to paste Passwords also in Remote Consoles?
I just tested it with RDM Enterprise 2021.2.26.0 and a vSphere Web Console, and im not able to paste anything in the Console with the Macros.

My Macro Setup:
forum image

I also tried it with the other Execution modes.
Pasting in local Notepad works as expected.

With Password Safe this works.

Best Regards,
Andreas

avatar

Hello Andreas,

Could you give us more info on the VMware entry you're using ? I'd especially like to know the Display mode and Console Type.

The Typing Macro works as expected for me when launching the entry in Embedded mode, so I'd like to make sure to have the same setup as you.

Regards

Jonathan Del Signore

avatar

Hi Jonathan

Im talking about a Console Session in my Browser, not within RDM.
In example: Having an open VMWare Web Console in my Edge and want to insert a Password String while login on the remote VM in that console.

Best Regards,
Andreas

avatar

Oh sorry I misunderstood.

Yes this issue is still current, and I see we have an opened ticket for it so I'll bump up the priority and come back to you as soon as we have an update.

Regards

Jonathan Del Signore

avatar

Hi

Ive found a new Hotkey "Execute Typing Macro" in Keyboard Config:

forum image

Is there a Documentation how to use this Hotkey? I think there must exist a link to a specific Typing Macro?

Is there also any News about the Pasting Problem in Hypervisor Consoles?
Im still not able to paste a simple Password with the Typing Macro within a Remote Console (VMWare Web Console).

I tested some with AutoIt, and this Code is just pasting fine the whole String into a Remote Console (it also doesnt matter, if the remote Keyboard Language is wrong):

Local $sClipData = ClipGet()
$aStringSplit = StringSplit($sClipData, "")
For $i = 1 To $aStringSplit[0]
	send($aStringSplit[$i])
Next


Is it possible, to change the Pasting Function like the Insert Routine above?

Bets Regards,
Andreas

avatar

Hello Andreas,

The "Execute Typing Macro" hotkey is used to execute the typing macro configured in the "After Open" event of a session. So simply select the session you want in the tree to execute it.

forum image


As for the issue with Macros used in Web consoles, I've been testing a few things in order to get it working, but unfortunately I don't have any positive results so far.

I'm not exactly sure yet what's preventing us to type in these types of consoles, but be assured that I'll keep you posted on any updates I have regarding this.

Regards

Jonathan Del Signore

avatar

Hello,

We've added the option "Force sending macro through SendKeys API" in typing macro entries, which enables the possibility to send inputs to VMWare consoles.

This option will be available in version 2022.2.11.0.

Regards

Jonathan Del Signore

avatar

Hi again,

I just got word that this option seems to only work with Firefox, so that may be a workaround if you're having issues.

We'll reopen the ticket to see if we can make it work on Edge/Chrome.

Regards

Jonathan Del Signore

avatar

Hi Jonathan

To be honest, it looks like its still not a real typing macro. A typing macro is then a typing macro, when it takes a string, split it in every single character and send keyboard strokes for every character to the current active destination.
And this simply doesnt happens with RDM. It looks like for me it just pastes the whole string which isnt compatible with most consoles.

Ive written a small external tool for that, which currently just reads the copy username and password shortcut from rdm, launches the commands to get the specific strings into clipboard and then, as written above, do the split and keyboard send command for each single character which works perfect on everything.

In Example: Try to connect via mstsc on a remote jumphost, then open there a vmware console and paste a string from RDM. If that works with your solution, i agree that your typing macro is a real typing macro :-)

But i really like to see that there are coming additional features. Would be nice if we can use an out of the box feature in rdm.

Best Regards,
Andreas