Which of the following code will David use to configure the authorization section of the Web.config file for MyWebService?

David works as a Software Developer for GenTech Inc. He creates an XML Web service, named MyWebService, using Visual Studio .NET. MyWebService uses Microsoft Windows authentication. Users of MyWebService are in the GenTech domain.

David wants to configure MyWebService to use the following URL-based authorization rules:

l Anonymous users must not be allowed to access MyWebService.

l All the users except User1 and User2 must be allowed to access MyWebService.

David configures Internet Information Services (IIS) to meet these requirements.

Which of the following code will David use to configure the authorization section of the Web.config file for MyWebService?
A . <authorization>
<deny users="GenTechUser1, GenTechUser2">
<allow users=”*”>
<deny users="?">
</authorization>
B . <authorization> <allow users="*">
<deny users="GenTechUser1, GenTechUser2"> <deny users="?">
</authorization>
C . <authorization>
<deny users="GenTechUser1, GenTechUser2">
<deny users="?">
<allow users="*">
</authorization>

D . <authorization>
<deny users="GenTechUser1, GenTechUser2">
<allow users="*">
</authorization>
E . <authorization> <allow users="*">
<deny users="GenTechUser1, GenTechUser2"> </authorization>

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments