I have a large user base site configured using asp.net 2.0 form authentication. Before a user logs in through authentication through a form, is it possible to get the username / name of the Windows account on the machine that they are using?
Many thanks
This is certainly possible - by adding another web application to your system. Here's roughly how I did it:
- . , , ( IP-), , Windows. ( , , ), cookie, , .
.
, - , . .
, , WindowsIdentity.GetCurrent().Name. , Windows, , , Windows!
WindowsIdentity.GetCurrent().Name
, Windows -, , ., , - ( ) -.
( ).
Auth Windows.
. Windows ASP.NET Microsoft MSDN.
@TheObjectGuy , 2 - -, IIS Windows "" (WinLogin.aspx).