This project is read-only.

RequireChap = true and RequireMSChap2 = false not work

Nov 4, 2011 at 2:28 PM
Edited Nov 5, 2011 at 11:56 AM

I set my entry with options below:


rasEntry.Options.RequireChap = true;
rasEntry.Options.RequireMSChap2 = false;


but two options in my windows dialup connections are checked. 

why RequireMSChap2 = false not working?

Nov 5, 2011 at 3:28 PM

There's also a couple other related options called RequireEncryptedPassword and RequireMSEncryptedPassword that sets the RequireMSChap2 and RequireChap options (this is a Windows SDK thing, not something the DotRas SDK does on its own). You'll need to set both of those to false to be able to turn off MSCHAPv2.

Nov 5, 2011 at 3:37 PM
Edited Nov 5, 2011 at 3:42 PM

Hey Jeff, as you say, when I put the code below its work. Thanks a lot!!!!

rasEntry.Options.RequireChap = true;
rasEntry.Options.RequireMSChap2 = false;
rasEntry.Options.RequireEncryptedPassword= false;
rasEntry.Options.RequireMSEncryptedPassword = false;