2-Factor Authentication Macro

2-Factor Authentication Macro

avatar

I am having trouble getting this Macro to work properly, and I'm hoping you can help!

What is the proper way to apply this macro? I go to Events>After Connect, input the Macro in the Typing Macro field, but the connection authenticates before I have an opportunity to input the RSA information.

Is there another way I should configure this? I have multiple connections for which I will need to configure this macro, and getting this to work makes the difference between making a whether or not my team and I make a recommendation to deploy this platform to our team of 200+ Engineers, Technicians, and Analysts. I have copied the macro from the Feature Request> 2 Factor Authentication topic, below.

Maurice Cote wrote:
Hello

I would suggest a macro

$USERNAME${TAB}$PASSWORD${TAB}%MYPIN%

In this example, I have stored the RSA PIN number in an environment variable therefore it's in my system only

You must go in the advanced settings of the session and check "allow password in variable"

When the macro finishes, focus will be in the third field after you PIN, you are left with entering the token and pressing enter [/table]

All Comments (6)

avatar

Hello,

I do not understand what action causes it to submit the authentication, in the macro we simply enter characters and press tab

Is there anything else in play here? You are using what type of session?

You could also record a video of you screen and send it to support@devolutions.net

Best regards,

Maurice

avatar

I am using this macro for a Citrix NetScaler page. I guess I am having difficulty getting the macro to run at the right time - e.g. before RDM completes the connection process.



It seems that RDM will input User name and Password, for me and will submit the form before the macro has an opportunity to run.

avatar

I see,

But the macro doesn't press enter at any time, in your case it's best to simply use

$USERNAME${TAB}$PASSWORD${TAB}

Maurice

avatar

I will try this macro, instead.

At which point in the connection process should I instruct the application to run the macro? The other difficulty I'm having is getting the macro to run before RDM submits the form.



I have tried adding this macro to Events>After Connect: After connect - Macro; I set it to execute automatically with 0ms, but this seems to be incorrect. Should I write this in VB and run it as a script Before Connect?

avatar

You have to fiddle with the Initial delay and adjust it to the time it takes for the web page to be ready to accept input. Most of the times it is not 0.

I would think that the only adjustment you need to make.

Maurice

avatar

This worked! For whatever reason, adjusting the {DELAY} time beyond 300ms was not successful, but I was able to work around this by stringing multiple {DELAY} entries, together. For most of our connections, an initial wait time of 1 second was sufficient.