What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The organization uses an Active Directory Application Mode (ADAM) server to store user names, passwords, and role membership information.

You need to configure the application to access the role information for authenticated users. You also need to accomplish this goal by using the minimum amount of development effort.

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The organization uses an Active Directory Application Mode (ADAM) server to store user names, passwords, and role membership information.

You need to configure the application to access the role information for authenticated users. You also need to accomplish this goal by using the minimum amount of development effort.

What should you do?

A.
Configure the application to use the ActiveDirectoryMembershipProvider class and the AuthorizationStoreRoleProvider class. Use the IsUserlnRole method of the AuthorizationStoreRoleProvider class to verify whether the user belongs to a role.

B.
Configure the application to use Windows authentication. Use the IsInRole method of the HttpContext.User object to verify whether the user belongs to a role.

C.
Configure the application to use the ActiveDirectoryMembershipProvider class. Create a custom RoleProvider class that connects to the ADAM server to verify whether the user belongs to a role.

D.
Configure the application to use the ActiveDirectoryMembershipProvider class. Use the IsInRole method of the HttpContext.User object to verify whether the user belongs to a role.

Explanation:
see also: http://msdn.microsoft.com/en-us/library/ff647400.aspx#paght000018_step3



Leave a Reply 0

Your email address will not be published. Required fields are marked *