ASP.NET Membership - Which RoleProvider to use so User.IsInRole() checks ActiveDirectory Groups?
问题 Very simple question actually: I currently have IIS anonymous access disabled, users are automatically logged on using their Windows login. However calling User.IsInRole("Role name") returns false. I double-checked User.Identity.Name() and the "Role name" and it should return true. I currently have this in my Web.Config: UPDATE I was calling User.IsInRole("Role name") where I should call User.IsInRole("DOMAIN\Role name") However I still like to know if the <membership> entry is needed at all?