Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Authentication

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
I am running an application on an intranet.

I am trying to retrieve the windows username but it is returning the application pool username instead.

I have the following in my web.config file:

Code:
<system.web>
    <authentication mode="Windows"/>
    <authorization>
      <deny users="?"/>
    </authorization>
  </system.web>

And in IIS the following options for the website:
Anonymous Authentication - disabled
ASP.Net Impersonation - disabled (if I enabled this I get 500 Internal Server Error)
Basic Authentication - disabled
Forms Authentication - disabled
Windows Authentication - Enabled



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top