|
|
|
вопрос из TK 070-320
|
|||
|---|---|---|---|
|
#18+
Как вы думаете какой ответ будет правильным? You have just created an ASP.Net application using C#. You also need to confige the Web.config file. You ensure that Baker can access all of the application's resources, except for those resources that are located in the /Apps/ResumeApplication directory. Baker is a member of the HRDepartment group. What should you do? (Select the best choice.) A. <system.web> <authorization> <allow roles="HRDepartment" /> <deny roles="HRExecutives" /> <deny users="*" /> </authorization> </system.web> <location path="/apps/resumeApplication"> <system.web> <authorization> <allow roles="HRExecutives"/> <deny users="?" /> </authorization> </system.web> B. <system.web> <authorization> <allow roles="HRDepartment" /> <deny roles="HRExecutives" /> <deny users="*" /> </authorization> </system.web> <system.web> <authorization> <allow roles="HRExecutives"/> <deny users="?" /> </authorization> <system.web> <authorization> <allow roles="HRDepartment" /> <deny roles="HRExecutives" /> <deny users="*" /> </authorization> </system.web> <location path="/apps/resumeApplication"> </system.web> C. <system.web> <authorization> <allow roles="HRDepartment" /> <deny users="*" /> </authorization> </system.web> <location path="/apps/resumeApplication"> <system.web> <authorization> <allow roles="HRExecutives"/> <deny users="?" /> </authorization> </system.web> D. <location path="/apps/resumeApplication"> <system.web> <authorization> <allow roles="HRExecutives"/> <deny users="?" /> </authorization> </system.web> TK считает, что A. Хотя мне кажется что D. Answer: A Baker can access all of the application's resources, including the resources in the /Apps/ResumeApplication directory. The first <authorization> section beginning on line 120 grants the HRDepartment group access to the application; thus, by virtue of his membership in the HRDepartment group, Baker can access the application. The second <authorization> block beginning on line 200 revokes access to the resources in the /Apps/ResumeApplication directory from anonymous users, but it does not revoke this access from Baker. Therefore, Baker can access the entire application. но ведь он как раз не имеет доступа к Apps/ResumeApplication directory. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.11.2005, 03:56:01 |
|
||
|
|

start [/forum/topic.php?fid=34&fpage=48&tid=1551532]: |
0ms |
get settings: |
9ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
58ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
24ms |
get tp. blocked users: |
1ms |
| others: | 198ms |
| total: | 324ms |

| 0 / 0 |
