ASP.NET / Active Directory - Supporting auto login for domain users

Posted by Krisc on Stack Overflow See other posts from Stack Overflow or by Krisc
Published on 2010-03-23T13:55:31Z Indexed on 2010/03/23 14:03 UTC
Read the original article Hit count: 941

Filed under:
|
|

I am developing a simple ASP.NET website that will run on the intranet on a WS2008(IIS7) box and respond to users running XP/IE8. Everything is domain connected and I am trying to automatically login the users much like SharePoint does.

On my dev machine (XP), when running the site through VS, everything works. I can pickup on the user perfectly. I am using the following settings:

<authentication mode="Windows"/>
<identity impersonate="true"/>
<anonymousIdentification enabled="false"/>

<authorization>
    <allow users="*"/>
    <deny users="?"/>
</authorization>

However, when I publish to the WS2008 box, it doesn't work. Clearly I am missing a setting in IIS7 to support this.

I have the following set for Authentication on the site:

Anon Auth - Enabled
ASP.NET Impersonation - Enabled
Basic Auth - Disabled
Forms Auth - Disabled
Windows Auth - Disabled

What am I missing? Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#