Posted on: 6/24/2014 5:44:47 PM | Views : 360

I have an ASP.net Webforms site and need to check if logged on user belongs to AD Group. I have set up Windows Authentication and this the code in web.config file.
<system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> <authentication mode="Windows" /> <authorization> <allow roles="DomainName\ADGroup1" /> <allow users="DomainName\JD1234, DomainName\JD1235"> <deny users="*" /> </authorization>
Only users with explicit permissions can open the home page. However a member of the NT Workgroup cannot log in. Roles is not working.
Any suggestions will be  most helpful. I have looked at explicitly checking in a web page as well  using  IPrincipal.IsInRole(“Administrator”


Go to the complete details ...