I have a C# ASP.NET 4.0 web site and would like to limit access to the web site to users in one or more active directory groups. I have been able to configure my web.config so that only users with a valid active directory user names and passwords can access the web site but I have not been able to figure out how to limit access to users in an active directory group or groups. I'm using Visual Studio 2010. I've done Google searches for the last several days have have only found complex code samples of how to perhaps get this to work. I don't understant why Microsoft hasn't made this simple to implement. Seems like it should only require relatively simple changes to the web.config file. Is it possible to get this authentication to work by only making changes to the web.config file? Somebody please enlighten me on why Microsoft has made this so difficult to do. I would appreciate any help or advice on the easiest way to implement this authentication. Thanks!
↧