Autodialing for authentication

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having a little difficult time here to configure an autodial for login thought a VPN connection. I have already configured the AutoAdminLogon, DefaultUserName, DefaultDomainName and DefaultPassword registry keys fro winlogon to automate the login process, but I simply cannot automate the dialin process (I still have to click on the VPN connection in "Choose a network connection" dialog box). I need this login process to happen through RAS and need it completely automated - this machine will be in a public place and requires that even in power failures the system will reconnect without any human intervention.

Does anybody have a light ? I am sure that there must be a registry key or whatever that hides this dialog box or that sets a default dial-out connection so it doesn't ask me which I will use (by the way, it is the only dial-out connection, so I guess the system would not need to ask me which).

Greatings for all,

Pedro Lima
 
Hi Pedro,

U can disable the connection query by using RasApis.

Use "RasSetAutodialParam" API . Set dwKey to
"RASADP_DisableConnectionQuery" and "lpvValue" to 1.
After doing this u will be able to dial the default connection
automatically.

U can set a connection as "default connectio" by using the Api
"RasSetAutodialAddress".
U can enable the autodial on a machine by using "RasSetAutodialEnable".

For Details u can see the MSDN documentation for RasApis.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rassetautodialenable.asp

Reply back if there are any problems,

Thanks,
vamsi.





--
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Pedro Lima said:
I am having a little difficult time here to configure an autodial for
login thought a VPN connection. I have already configured the
AutoAdminLogon, DefaultUserName, DefaultDomainName and DefaultPassword
registry keys fro winlogon to automate the login process, but I simply
cannot automate the dialin process (I still have to click on the VPN
connection in "Choose a network connection" dialog box). I need this login
process to happen through RAS and need it completely automated - this
machine will be in a public place and requires that even in power failures
the system will reconnect without any human intervention.
Does anybody have a light ? I am sure that there must be a registry key or
whatever that hides this dialog box or that sets a default dial-out
connection so it doesn't ask me which I will use (by the way, it is the only
dial-out connection, so I guess the system would not need to ask me which).
 
Hi Pedro,

U can disable the connection query by using RasApis.

Use "RasSetAutodialParam" API . Set dwKey to
"RASADP_DisableConnectionQuery" and "lpvValue" to 1.
After doing this u will be able to dial the default connection
automatically.

U can set a connection as "default connectio" by using the Api
"RasSetAutodialAddress".
U can enable the autodial on a machine by using "RasSetAutodialEnable".

For Details u can see the MSDN documentation for RasApis.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rassetautodialenable.asp

Reply back if there are any problems,

Thanks,
vamsi.



--
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Pedro Lima said:
I am having a little difficult time here to configure an autodial for
login thought a VPN connection. I have already configured the
AutoAdminLogon, DefaultUserName, DefaultDomainName and DefaultPassword
registry keys fro winlogon to automate the login process, but I simply
cannot automate the dialin process (I still have to click on the VPN
connection in "Choose a network connection" dialog box). I need this login
process to happen through RAS and need it completely automated - this
machine will be in a public place and requires that even in power failures
the system will reconnect without any human intervention.
Does anybody have a light ? I am sure that there must be a registry key or
whatever that hides this dialog box or that sets a default dial-out
connection so it doesn't ask me which I will use (by the way, it is the only
dial-out connection, so I guess the system would not need to ask me which).
 
Dear Kancharla,

Thanks for your post. But since I am an infrastructure professional, who really do not deal with API's at all, I can't see how I will apply that in the logon time. I think that there must be a registry key that hides or disable this dialog box (that would be much easier for me...). I have tried to use Connection Manager to create a customized connectoid for the VPN connection, so I could execute a code before the dial process. Even not beeing a programmer (the infrastructure guys here knows what I am talking about), I have wrote a simple VBS script to send the <TAB> and <ENTER> keys to the computer and have included that script in the "before dial" actions of the connectoid. The problem is that even in Connection Manager connections the action to be done "before" the dialing does not include the time of the execution of that dialog box, but the "before" is after that. Even if I knew how to to use API's (I don't) I would still have the problem on how to call that program at the right time, so I could do the action of disabling that dialog box.

Anyhow, thank you for taking your time trying to help me. May God bless you for that.

Pedro Lima
 
Back
Top