Support 2FA on RDP session with OTP

Support 2FA on RDP session with OTP

0 vote

avatar
trade01
Disabled

Hello,

for remote access to our servers I use 2FA with AuthLite and with yubikey or soft token via smartphone apps.

The following credentials are used in RDP:

User: domain \ name-code

Password: assigned password

Variable is the code given by yubikey or the soft token for 30s.

My question: How can I enter the code via an additional query by RDM before connection?

Many Thanks!

Michael Kirnich

All Comments (25)

avatar

Hello,

Remote Desktop Manager use standard RDP protocol to connect to target computer.

How could you process this with MSTSC directly?

Is there any line you need to add in the .rdp file?

Best regards,

David Grandolfo

avatar
trade01
Disabled

Hello David,

I have created a connection with the required credentials for testing in the RDM and then exported as an rdp file.

Username: domain \ user-code

Password: known password

rdp:

prompt for credentials: i: 0

negotiate security layer: i: 1

username: s: xxx-domain \ test-833775

domain: s: xxx-domain

The code changes every 30 seconds. I need a query to enter the code before connecting. The other data does not change.

many Greetings

Michael Kirnich

avatar

Hello,

Thanks for the details, that being said, this is unfortunately not an RDM feature. I will transfer the topic to the feature requests section.

Best regards,

David Grandolfo

avatar

Old post, but I was looking for a solution and there didn't seem to be one.

Here is what I ended up doing with a client that deployed Authlite. I created a new set of credentials with the username formatted like this;

<domain>\<username>-$ONE_TIME_PASSWORD$

and the password set as usual.

Configuring the OTP settings in the RDP connection as 'specific to session' and now I can log in, with elevated credentials and not have to dink around with the OTP.

Works like a charm. RDM is super awesome. Would be nice owuld be an override of username to something like $USERNAME$-$ONE_TIME_PASSWORD$

To say can't is to fail before you begin

avatar

Hello Bill,

Thank you for mentioning the workaround that you have found for this situation!

Would it be possible for you to provide us with more information about what you would like to see added to RDM? If I am not mistaken, you would like to have to possibility to configure a User Specific Settings that would overwrite the content of the username field of your RDP entry and replace it with the variables $USERNAME$ and $ONE_TIME_PASSWORD$?

Since the $USERNAME$ variable already returns the information kept in the username field of the entry, another variable would need to be used to fetch the information you are looking for.

Best regards,

James Lafleur

avatar

Hey James,

I did put in a feature request OTP as part of username (devolutions.net) with more details, screenshots, etc.

Thank you!

-Bill

To say can't is to fail before you begin

avatar

Hello Bill,

You are more than welcome! Thank you for submitting a feature request.

Best regards,

James Lafleur

avatar

James,

You're welcome. I'm a super big fan of Remote Desktop Manager. Been using it for years and love it. Keep up the good work and rock on!

-Bill

To say can't is to fail before you begin

avatar

Apologies for bringing back such an old post, but I'm trying to implement the same (or similar) workaround.

We have Authlite in our environment. I added an OTP to a linked Vault username/password, but when I set the user to USERNAME-$ONE_TIME_PASSWORD$, it instead passes just "USERNAME-" as the user without including the OTP from the OTP tab. Is there something I'm missing here?

Authlite prefers to have users enter their OTP in a separate field, but it will accept USERNAME-OTP as a login as well. If I can get Remote Desktop Manager to pass the OTP stored in the vault, I could get this to work without having to manually enter my credentials each time.

I feel like I very nearly have this right but I'm missing some critical detail. I've set the OTP key up both in the OTP tab of the linked vault account, and as it's own OTP entry separate from the main credentials. The issue seems to be getting Devolutions to populate the $ONE_TIME_PASSWORD$ variable when signing in.

avatar

Hello,

In your session entry (RDP for example), you need to configure the OTP in the One Time Password tab, and configure the "usage" to be in "append to username", and in your case, specify "-" as the combination string, which will be the string put between the username and the OTP value:

Let us know if that helps!

Regards,

Hubert Mireault

avatar

Perfect, thank you, that's exactly what I needed!

avatar

Glad to hear this works for you, let us know if you need any additional help.

Regards,

Hubert Mireault

avatar

Sorry for revising a year old thread but we use AuthLite as well and I cannot figure out how to make this work.

How do I configure the OTP settings? If I just try to manually enter the information in the credential prompt as username-otp it does not work.

I've tried following these instructions but it doesn't work. It never prompts for the one time passcode.

I get the error "The key is either empty or contains invalid characters".

avatar

Hello @cliffwilliams44,

With the error you're encountering, I suspect that the OTP configuration in your entry is incorrect. How did you configure your OTP information in your entry?

Regards,

Hubert Mireault