How to Select EAP type

Nov 6, 2013 at 3:47 PM
Edited Nov 6, 2013 at 3:55 PM
Hello all, Wondering if someone would be so kind as to help me.
I am developing a new windows application so that my users can connect into our network using RSA VPN, currently I am using a botched together script to install the pre-requisites and CMAK the connection, but I though a nice .net app. would be a lot nicer!

My code so far creates an entry in rasPhoneBook1 and sets all the desired options. However, to connect to our RSA gatekeeper server an extra EAP method must be installed via an executable called the RSA EAP Client. This then creates 2 more options in the drop down box under the Use Extensible Authentication Protocol (EAP) called: "RSA Security EAP (encryption enabled)" and "RSA EAP - Protected OTP (encryption enabled)".

In the DotRas code, how do I select the "RSA Security EAP (encryption enabled)" option?

Here's my code so far for adding to the address book:
        RasEntry entry = RasEntry.CreateVpnEntry(EntryName, "", RasVpnStrategy.PptpOnly,
        RasDevice.GetDeviceByName("(PPTP)", RasDeviceType.Vpn));

        entry.EncryptionType = RasEncryptionType.Require;
        entry.Options.SoftwareCompression = true;
        entry.Options.DoNotNegotiateMultilink = false;
        entry.Options.RequireEap = true;

        \\ code to change EAP type to RSA?

Kind Regards,
Nov 6, 2013 at 10:29 PM
As I tell everyone, you'll have to figure out the options you need to set on your own. What might work for one person, given their network configuration might not work for another with the exact same settings.

That being said, I did write up some how-to steps to figure out which settings you need to set on your entry to mimic what you've already got configured.

Please refer to:

Also, be aware that there are some issues with the Win32 RasDial API and CMAK connections, one of the users posted the answer here:

Hope that helps!
Nov 7, 2013 at 8:16 AM
Edited Nov 7, 2013 at 8:17 AM
Thank you Jeff that worked perfectly, I had read your previous instructions but did not fully understand that it would help me with my problem, perhaps I was too quick to assume!

For future reference, if anyone else has this same question (and using my code above);

RSA Security EAP (encryption enabled) - in code is:
entry.CustomAuthKey = 15;
RSA EAP - Protected OTP (encryption enabled) - in code is:
entry.CustomAuthKey = 32;
Marked as answer by jeff_winn on 11/8/2013 at 6:01 AM
Nov 8, 2013 at 1:02 PM
Glad it worked out, good luck with your project!