AnyConnect can't use Macro with Variables

AnyConnect can't use Macro with Variables

avatar

Hi,

I have an AnyConnect VPN Session with the following macro
{WINDOW:AnyConnect}$USERNAME${ENTER}$PASSWORD${ENTER}

I have enabled the Variables on the advanced tab but it dosn't work :(

If I enter the macro without variables it works fine. Where is the problem :(

Greetings

All Comments (11)

avatar

Hi,
The VPN wait time is handled differently in the latest beta (8.0.16). Could you give it a try?

David Hervieux

avatar

I have tried with 8.0.16 and 8.0.11, same problem

avatar

Same Problem with ShrewVPN

1.png

2.png

avatar

Hi

First case : Anyconnect

The AnyConnect add-on has the SupportCredentials property false. It also doesnt have the username/password fields in the Detail tab. The code is written in a way that will ignore the $USERNAME$ and $PASSWORD$ fields.

You must be using the credentials controls in the top tab to specify your credentials. We have to decide between hiding the Credential controls that are common to all entries, or to let it pass and extract the value of the variables from the credentials themselves. Arguably you present a valid use case for the latter, but we have to weigh the pros and the cons carefully.

We have to discuss this internally, we'll let you know whats decided.

As a workaround, you can use the custom fields as described here

http://help.remotedesktopmanager.com/settings_custom_fields.htm Use the checkboxes at the right to protect the values by encrypting them.

Change your macro to
"{WINDOW:AnyConnect}$CUSTOM_FIELD1${ENTER}$CUSTOM_FIELD2${ENTER}"

I know that this prevents the use of shared credential entry, but thats the easiest solution that is possible right now.

Second case : ShrewSoft VPN

It looks like you entered a username and password as well as choosing a credential entry. That add on was not provided by Devolutions and it also has SupportCredentials = false. The credential entry has precedence over the other information therefore the addon reacts the same way as Anyconnect.

Maurice

avatar

Hi,
Maurice, I think that problem is deeper. RDM is waiting for the Shrewsoft/AnyConnect and is not executing the macro. I will take a look on Monday as soon as I get back to the office

David Hervieux

avatar

Hi,
I have verified and Maurice is right.

For Shrewsoft, we will need to recreate the add-on. The original author is no longer working on it. André will take care of this

For AnyConnect, I have a solution but it will required a new build an new version of the add-on. You can expect that for the end of the week.

Regards

David Hervieux

avatar

Hello !

any news of new build of the AnyConnect add-on ?

Regards

avatar

Hi,
This is already updated. Have you tried the latest version?

David Hervieux

avatar

it's release 2.3.2.1.
Isn't it possible to record credentials instead of being obliged to enter password during connection ?

avatar

You need to create an auto typing macro to send the password since it's not possible to provide the credentials.

David Hervieux

avatar

ok i will try the typing macro.
Thanks