This project is read-only.

Ras and persisted credentials

Sep 13, 2013 at 4:17 PM
Edited Sep 13, 2013 at 4:18 PM
This isn't exactly a DotRas question, but might work out to be one:

We have a phonebook entry which has saved credentials for all users. If we dial it from Explorer's little widget (Windows 7) it works as expected. If we dial it from either our code or RasDial.exe, we get a 734 back (which in context is an authentication failure), unless RasDial is passed explicit credentials. This is odd to me; what's the point in saving them if they aren't used somehow by default. Is there something I'm missing about saved credentials? (BTW, our program itself saves the credentials every time to be sure.)
Sep 14, 2013 at 4:13 PM

There was a change made to the API in 1.2 that allowed that feature to be turned on and off on the RasDialer. If you set the AllowUseStoredCredentials property to true on it, and do not set the credentials property it will use them. The reason for this was it got confusing to a number of people what credentials the dialer used to dial the connection.

Hope that helps!
Marked as answer by keithdouglas on 10/9/2013 at 8:30 AM
Sep 18, 2013 at 1:38 PM
Ah! That was it - the documentation for Dial doesn't reference this matter.