learned/learning/to learn RSS 2.0
# Friday, 06 November 2009

With <authentication mode="Windows"/> in your application and Anonymous access enabled in IIS, you will see the following results:

 

System.Environment.UserName: Computer Name

Page.User.Identity.Name: Blank

System.Security.Principal.WindowsIdentity.GetCurrent().Name: Computer Name

 

With <authentication mode="Windows"/> in your application, and ‘Anonymous access’ disabled and only ‘Integrated Windows Authentication’ in IIS, you will see the following results:

 

System.Environment.UserName: ASPNET (user account used to run ASP.NET service)

Page.User.Identity.Name: Domain\ Windows Account Name

System.Security.Principal.WindowsIdentity.GetCurrent().Name: Computer Name\ASPNET

 

With <authentication mode="Windows"/> and <identity impersonate ="true"/> in your application, and ‘Anonymous access’ disabled and only ‘Integrated Windows Authentication’ in IIS, you will see the following results:

 

System.Environment.UserName: Windows Account Name

Page.User.Identity.Name: Domain\ Windows Account Name

System.Security.Principal.WindowsIdentity.GetCurrent().Name: Domain\ Windows Account Name


With <authentication mode="Forms"/>:

Request.ServerVariables["LOGON_USER"]: Domain\ Windows Account Name


Friday, 06 November 2009 15:04:37 (GMT Standard Time, UTC+00:00)  #    Comments [0] -
.NET
Navigation
Archive
<2009 November>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2017
Gokulnath
Sign In
Statistics
Total Posts: 41
This Year: 0
This Month: 0
This Week: 0
Comments: 47
Themes
Pick a theme:
All Content © 2017, Gokulnath
DasBlog theme 'Business' created by Christoph De Baene (delarou)