Previous Next

Thread: Windows Auth only working on localhost

Last post 08-22-2008 9:37 AM by cvog. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 12-12-2006, 5:06 PM

    • BradW
    • Not Ranked
    • Joined on 01-06-2006, 7:40 PM
    • Posts 2

    Windows Auth only working on localhost

    I set up multiple web sites on my new Vista pc and so far,  windows authentication only seems to be working with web apps on the localhost web site.

    My PC network adapter one static ip address, which connects to the domain, and multiple non-routable ip addresses on the same adapter for use with the web sites (i.e. 192.168.0.20).  localhost binds to "unassigned" ip addresses, while the rest of my ip addresses bind to the 192.168.0.x series.  These have all been added to the Hosts file too, so my Hosts file looks something like this (names changed to protect the innocent):
             127.0.0.1       localhost
             192.168.0.10  ecommerce
             192.168.0.11  intranet
             192.168.0.12  internet
             192.168.0.13  webservicehost

    I created a simple asp.net app called Test in localhost.  In IIS I enabled Impersonation and Windows Authentication...I also set app pool to Classic .Net.  The default.aspx page does a simple response.write of WindowsIndentity.GetCurrent.Name  (if you test this the page needs a using System.Security.Principal for this to work).    If I run this it properly displays my domain id  (domain\username).

    I copied this web app to another one of the web sites under IIS7, one that uses one of the non-routable ip addresses and set the same settings in IIS console.  Now when I run the app I receive a windows login dialog and no mater what I enter for a login it just prompts me again until it fails and I receive a 401.1.

    Now someone is bound to say this setup with the adapter using one static ip and the multiple non-routable ip address should not work.....but this whole setup works great on my win2003 server pc, which is what I am trying to migrate from. In fact the only reason my "old" workstation OS is win2003 is for being able to run multiple web sites...and I just want to get the same thing working under Vista/IIS7

    Interesting followup to this since I originally posted:
    In IE7 on Vista  I disabled "Enable Integrated Windows Authentication" and now Windows Authenticaiton against all the web sites works.  Yes, you read correctly...by disabling windows authentication in IE....the windows authenticaiton from IE to the web sites now works.   Definitely did not have to do this in IE7 on my win2003 pc.

  • 12-13-2006, 9:16 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Lawrenceville, NJ
    • Posts 4,070
    • IIS MVPs

    Re: Windows Auth only working on localhost

  • 08-22-2008, 9:37 AM In reply to

    • cvog
    • Not Ranked
    • Joined on 08-22-2008, 9:35 AM
    • Posts 1

    Re: Windows Auth only working on localhost

    Hi Brad,

    I the same problem with IIS 7 and Vista. Did you find any solution? I have spent the last 3 days searching for a solution on this.

    Thanks

    Christos

Page 1 of 1 (3 items)
Page view counter