« Previous Next »

Thread: Login-Dialog appears (Windows Integrated / IIS 7.0 / Win2008)

Last post 06-10-2009 7:19 AM by Martin Glas. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-09-2009, 5:53 AM

    Login-Dialog appears (Windows Integrated / IIS 7.0 / Win2008)

    Hello,

    we have an ASP.NET 2.0 - application (Intranet) that formerly was installed (and worked) under IIS 6.0 with Integrated Windows Authentication. The in Windows logged in user was automatically provided to the application, without the need for the user to log in separately.

    Installed under IIS 7.0 (with Anonymous disabled and only Windows Authentication enabled) everytime the web application is started the browser pops up a login dialog.

    I checked every setting in http://support.microsoft.com/kb/258063, tried many different settings but the login dialog appears everytime. 

    Could you please help me to suppress the login dialog and pass-through the Windows-user to the application like in IIS 6.0

    Thanks for your effort

    Martin

     

     

     

  • 06-09-2009, 6:31 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,402

    Re: Login-Dialog appears (Windows Integrated / IIS 7.0 / Win2008)

    You need to disable kernel mode authentication settings which is a new feature introduced in IIS 7. This mode does not support pre-authentication.

    Please check item 5 in the following article to disable kernel mode,

    http://learn.iis.net/page.aspx/381/aspnet-20-breaking-changes-on-iis-70/

     

     

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-10-2009, 3:25 AM In reply to

    Re: Login-Dialog appears (Windows Integrated / IIS 7.0 / Win2008)

     Thank you for your fast help. I disabled kernel mode authentication like described in the article. But the logon-dialog still appears. I tried to change many other settings, but it still appears when i browse to the website.

    I have written a small web-app to show me WindowsIdentity-settings. One difference between my local webserver (no popup appears) and the Win2008-system is, that Authentication Type is NTLM (local XP) and Negotiate (Win2008). Could this be the reason and how can i change it?

     

  • 06-10-2009, 6:02 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,402

    Re: Login-Dialog appears (Windows Integrated / IIS 7.0 / Win2008)

    Then we need to go back to basics. Can you check this KB article to see if it explains the reason of the prompt?

    http://support.microsoft.com/kb/258063

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-10-2009, 7:19 AM In reply to

    Re: Login-Dialog appears (Windows Integrated / IIS 7.0 / Win2008)

     Hi,
    i checked the items in the article again:

    I have Integrated Windows authentication.
    * Both the "Default Web Site" and "MyWebSite" have in the "Authentication" only "Windows Authentication" enabled. The Application Pool is at the moment "Classic" (pipelined). The other authentication modes are disabled.

    * Client and WebServer are on the same machine. I tried it with the Administrator user and also a normal user. Both get the logon dialog.

    * My test browser is IE 7 and in its internet options "Enable Integrated Windows Authentication" is enabled.

    * The requested url is http://localhost/MyWebSite/ That means it is a intranet. Therefore IE should  serve login info automatically.

    * The security setting for IE (Intranet) is set to "automatic login only in the intranet zone".

    If I right-click the "Authentication"-entry in IIS-Manager and choose "Basic Settings..." a dialog appears where i have the following settings:
    - alias:        MyWebSite
    - Application Pool:    Classic .NET AppPool (also tested with Default)
    - Physical Path:    C:\inetpub\wwwroot\MyWebSite

    If I now click the button "Test Connection" i get the following result:
    - Authentication (green icon)    Pass-through authentication            
    - Authorization (yellow icon)    Connot verify access to path

    Could this be an indicator for my problem.

    Thanks a lot for the help.

    Martin

Page 1 of 1 (5 items)
Microsoft Communities