Credential for Username only and use local session's own password

Credential for Username only and use local session's own password

1 vote

avatar

I want to create a credential called "rcs" as the following

Username = rcs

Password = $MACRO_PASSWORD$

When I create a session I would link "rcs" credential

The password field would be pre-populated as "$MACRO_PASSWORD$"

I would goto Events / After Opening / Macro Password and type the password

Why? I use the same username for a lot of logins, this way I just need to update the password.

I made sure in both the credential and local session I went to security settings and checked the box for Allow password in variable. When I goto the session and view the password it shows $MACRO_PASSWORD$ even though I entered a password in the macro password field.

Thoughts?

All Comments (6)

avatar

Hello,


At the moment, due to the way variables are resolved, they aren't supported in password fields due to them being encrypted. I believe I have a way to achieve what you need that doesn't require having a variable in the password field, I'd like to know if it's something that works well for you.


First, you'll want to create a custom variable for your username. Depending on your environment and the way you work, you can create this custom variable at one of three levels:

  • Local settings: this variable is saved in your local configuration, meaning on a different PC it would not be available

  • Vault settings: this variable is saved in the vault, meaning that the moment you are on a different workspace or in a different vault, it would not be available

  • System settings: this variable is saved in the workspace, meaning it's available through any vault in that workspace, but would not be available in a different workspace


For my example, I'll create it at the vault level:

image.png


Afterwards, you want to create a password list entry, where you will enter one item per different password you need. The username for each of these items will be the variable you created previously, in my case, "$RCS_USERNAME$":

image-2.png


Finally, in your session entries like RDP or SSH, you will want to set your credential to this password list. You should press the blue "select from the list" button to choose a specific credential entry from the password list, as it will avoid prompting every time you open this session, and simply take the chosen credential directly.

image-3.pngimage-4.png


As you can see, the result here is the username will resolve to the same value, while your password will be different since the password list item you chose for your session is different. For maintaining these credentials in the future, you would only need to maintain the password list itself to change the passwords' values, and the custom variable if you need to change your username at large.


Let me know what you think of this solution and if you hit any snag.


Regards,

Hubert Mireault

avatar

Hubert - thank you, the few tests worked, much appreciated as always.

Since I am using the free edition, I had to perform different steps ( similar to get the same functionality )

This is one function using a competitor "Royal TS" where it is much easier to simply use global variables, lot less to configure.

https://royalapps.com/ts/win/features

avatar

Glad I could help!


As for the feature in RoyalTS, do you have a few screenshots or documentation about it? I couldn't find anything about global variables, but I'm not as familiar with the product so I might be missing something, or it's a similar term and I can't find it. I would be curious to know if it's essentially what you asked in your original post, which is variables you can use in any field, including password fields (which RDM currently does not support).


Regards,

Hubert Mireault

avatar

Royal TS calls them Replacement Tokens

https://docs.royalapps.com/r2021/royalts/advanced/tokens.html

avatar

Thank you. From what I can see, this is more or less the same feature as we support in RDM. They seem limited to certain fields so the way they resolve is probably different, as ours is more of a "generic" approach (which is why encrypted fields like passwords aren't covered by the feature).


At any rate, we'll keep your feedback in mind for potentially adding support for variables inside password fields, but I hope that the alternative I suggested works well enough for you at the moment.


Regards,

Hubert Mireault

avatar

Thx