I have an ASP.NET site running in IIS7 on a local intranet. I want to restrict access to this site to a specific group of users. I think I should be able to do this by using Windows Authentication within IIS, but I'm having trouble.
I've enabled the Windows Authentication feature of IIS, and I've enabled Windows Authentication on my site in inetmgr. I set authentication in the web.config for my site:
<authentication mode="Windows" />
From what I've read, this should be all I need to do... but nothing seems to happen. I tried restricting access by using directory security within windows, and was able to deny access to all users by removing read access on the directory. But I wasn't then able to restore access to the specific users required. It feels like IIS doesn't know who the user requesting the page is, as though it never actually did any authentication.
Am I missing something?