asp.net mvc - MVC 4 Authorize Controller Attribute Active Directory -
i've created default mvc 4 intranet application , configured use windows authentication follows. i'm trying authenticate roles against active directory
<authentication mode="windows" /> <authorization> <deny users="?" /> </authorization> <rolemanager defaultprovider="aspnetwindowstokenroleprovider" enabled="true"> </rolemanager> <identity impersonate="true"/>
when decorate controller following attribute users works fine because it's using windows authentication
[authorize(users=@"domain\username")]
when try decorate following attribute roles, tells me i'm not authorized. i've tried specifying full path of roles such domain\ou container\ ou container\
etc way down specific group, still doesn't work.
i'm not sure role provider it's using though specified aspnetwindowstokenroleprovider
[authorize(roles = @"domain\role")]
i guess question boils down how can authenticate against ad groups. if can point me in right direction, sure appreciate. i'm sorry if duplicate, haven't found answer works me yet.
Comments
Post a Comment