On Tue, 22 Jun 2004 20:50:01 -0700, "Lone" <Lo**@discussions.microsoft.com> wrote:
¤ Hi all,
¤
¤ I would like to develop a .NET application with single logon. It means once the user login the workstation which installed with Window NT or XP. The user doesn't need to enter the login ID and password for that .NET application again. The application will capture the login ID and password automatically.
¤
¤ Can anyone tell me how to do it in .NET Windows application and Web application respectively ?
¤
The .NET application can determine who the network authenticated user is but not his/her password
without prompting the user for this information:
System.Security.Principal.WindowsIdentity.GetCurre nt.Name.Split("\"c)(1)
For ASP.NET you can set up the web application for NT integrated authentication in IIS. This will
enable use of the network authenticated credentials the user entered when logging on. You will want
to enable impersonation for the web app:
http://msdn.microsoft.com/library/de...ersonation.asp
Paul ~~~
pc******@ameritech.net
Microsoft MVP (Visual Basic)