Is it possible to get a Windows login with a site using asp.net forms authentication?

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

+5
source share
5 answers

This is certainly possible - by adding another web application to your system. Here's roughly how I did it:

- . , , ( IP-), , Windows. ( , , ), cookie, , .

.

+4

, - , . .

, , WindowsIdentity.GetCurrent().Name. , Windows, , , Windows!

+1

, Windows -, , .
, , - ( ) -.

+1

( ).

Auth Windows.

0

. Windows ASP.NET Microsoft MSDN.

@TheObjectGuy , 2 - -, IIS Windows "" (WinLogin.aspx).

0

All Articles