RE: Windows Authentication Question for ASP

From: Jian-Wei Yu [MS] (jwyu@online.microsoft.com)
Date: 11/01/02


From: jwyu@online.microsoft.com (Jian-Wei Yu [MS])
Date: Fri, 01 Nov 2002 07:22:02 GMT


Hello,

Thank you for using the Microsoft Newsgroups.
 
To perform Windows authentication in asp.net, please test the following
steps.

1, In IIS, select the virtual directory, click the Directory Security tab,
uncheck Anonymous Access and check Integrated Windows authentication.

2. In the web.config file, locate the <authentication> tag, and set the
mode to Windows. The syntax for this is listed below.
   <authentication mode="Windows" />

3. You can check the user's identity using the command:
<%=User.Identity.Name%>

Please also refer to:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q317012

If you have any questions, please reply to this post.

Regards,

Jian-Wei Yu
Microsoft Support

This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Using IIS w/ASP .NET 2.0 Web Application Projects
    ... I believe that selecting both allows IIS to have the benefits of both. ... not set the ASP .NET setting to Windows authentication. ... Integrated Windows Authentication overrides the Anonymous authentication ... account on the server which is hosting it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • IIS Setting prevents AD Query from working?
    ... does NOT work when IIS is set to only use Integrated Windows ... only delegatable when Integrated Windows Authentication is used if Kereberos ... Windows 2003 Server ...
    (microsoft.public.sharepoint.portalserver.development)
  • IIS Setting prevents AD Query from working?
    ... does NOT work when IIS is set to only use Integrated Windows ... only delegatable when Integrated Windows Authentication is used if Kereberos ... Windows 2003 Server ...
    (microsoft.public.inetserver.iis)
  • Re: asp.net sql trusted connections between machines
    ... > connect to a remote SQL Server instance w/ Read-Write permissions. ... > connection string in the web.config. ... > Windows Authentication setting for access via IIS doesn't seem pass the ... is this impersonation behavior with IIS and Windows Authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Gatherer errors under SPS 2003 SP1
    ... IIS uses windows authentication only. ... In the IIS-logfile I saw that the crawling process generates some entries ... >> Fehler im PortalCrawl-Webdienst. ...
    (microsoft.public.sharepoint.portalserver)