I am developing an Intranet and I want to display the user name on the page.
I seem to be having difficulty getting authentication to work with IIS. I don't want the users to be forced to type in a login and password, I want their existing network/Active Directory credentials to be authenticated automatically.
I have played with our IIS settings and the web.config file ad nauseam, and I am getting frustrated. As far as I can tell, I have the settings exactly like the tutorials I have seen on the web.
I have "allow anonymous access" turned OFF.
I have "Windows Integrated Authentication" turned ON.
In my web.config file, I have tried turning "impersonate" ON and OFF with no noticeable effect.
Dim authuser As WindowsIdentity = WindowsIdentity.GetCurrent()
Can someone tell me the settings I need to have for IIS and web.config?