Clarification of ASP.NET User.IsInRole

I need to implement authorization based on an Active Directory group. Can someone clarify how the code below works?

User.IsInRole("Human Resouces")

Question:

  • Is the Human Resources role in the Active Directory group verified?
  • If not, how can I enable so that isInRole really checks the Group in Active Directory member.
  • Or does he check the role on the IIS Server machine?

Thank.

+3
source share
2 answers

This requires some configuration, check the following resources:

http://msdn.microsoft.com/en-us/library/ms180890(v=vs.80).aspx http://msdn.microsoft.com/en-us/library/ff650308.aspx

, , User.IsInRole AD. (IPrincipal) ( ); AD .

.

0
0

All Articles