Solved

RAS Logging automatically

Posted on 1998-08-21
3
228 Views
Last Modified: 2013-12-03
When RAS authenticates the user who wants to log on to the NT network ,(of course he has a account in the NT network), a login dialogue appears which requests user's password (but I've pass the user's password in calling rasdial API). How can I get hold of the login dialogue in my program so as to pass the password to NT authentication and log onto tne network ? Any help is appreciated.
0
Comment
Question by:wuxie
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
fmismetti earned 200 total points
ID: 1413780
Create a Dial profile using the dial up, including phone number, DNS stuff and all.

Fill an structure RASDIALPARAMS, where szEntryName is the name of the dial up profile you created. Suply the fields szUserName and szPassword.

Call the Win32 function RasDial, passing your structure as parameter number 3.

After that, look for messages WM_RASDIALEVENT to determine the conection status.

Good luck.

0
 

Author Comment

by:wuxie
ID: 1413781
My question refers to logging  onto the NT network so that the remote user can use shared resource; I've tried RasDial API,but it doesn't log the user onto the network really in NT,except that  you manully fill the dialogue it calls for example, the  password. I want to find a way to get rid of the logon dialogue so I can control the logon instead of typing something while I'm logging so I can login automatically..  
0
 
LVL 1

Expert Comment

by:fmismetti
ID: 1413782
In the configuration of the DialUp profile, in the server types tab you have a "Log on the network" check box. Turn this on. Also, turn on and configure all the protocols you want to use.

When RAS get connected, it applies all the options that you have setup in the profile (you pass the profile name in the RASDIALPARAMS.szEntryName field) and uses RASDIALPARAMS.szUserName RASDIALPARAMS.szPassword to log on the network.

I used this method in several configurations, and logging on to the network it was not a problem, accessing resources by TCP/IP or Netbeui. After the dial, I receive a message "RASCS_Authenticate" (begin of authentication) and after a few seconds, "RASCS_Authenticated" (authentication OK).

Hope it help you. If no, you can always reject the answer to see if someone has another way to do this.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now