asp.net mvc - MVC application to restrict one ad group -


i want restrict application accessed 1 particular ad group only. have implemented authorize attribute on controllers , web.config below. application not accessible including ad group. please help.

[authorize(roles = @"domain\adgroup")]     public class homecontroller : controller     <authentication mode="windows" />         <authorization>           <deny users="?" />         </authorization>         <rolemanager enabled="true" defaultprovider="aspnetwindowstokenroleprovider">           <providers>             <clear />             <add name="aspnetwindowstokenroleprovider" type="system.web.security.windowstokenroleprovider" applicationname="/" />           </providers>         </rolemanager> 

i have tried response given in post authorization using active directory role provider mvc4 below doesn't seem have resolved. still getting 401 unauthorised error

[authorize(roles = "domain\\adgroup")] public class homecontroller : controller 


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -