Has anybody come across occurrences where MVC does not recognize roles from Windows? I thought that roles translated to groups in Windows, but for some reason when I add a user to a group, check in MVC (using windows authentication) if that user.IsInRole(“GroupJustAddedTo”) always returns false. I have no idea why….Working in Server 2003 R2 with Windows Authentication enabled around the board. Confused :~( ???
Has anybody come across occurrences where MVC does not recognize roles from Windows? I
Share
Without knowing anything else, it makes me wonder if perhaps your MVC is not really connected to your AD server. Also, perhaps the user that is fetching the groups doesn’t have sufficient privileges? Just some initial thoughts.
EDIT
We ended up writing our own RoleProvider. Here is the overloaded GetRolesForUser code