在Alfresco 5.0.d中,即使匿名用户也可以访问部署控制台http://localhost:8080/share/service/modules/deploy - 我该如何保护它?
答案 0 :(得分:2)
模块部署页面(与service /下的其他Surf webscripts一样)默认限制为admin。
请在此处查看用于设置管理员身份验证要求的webscript描述符文件:https://github.com/Alfresco/community-edition/blob/master/projects/surf/spring-surf/spring-surf/src/main/resources/webscripts/extensibility/moduleDeployment.get.desc.xml
<webscript>
<shortname>Module Deployment Status</shortname><description>Displays the current module deployment status.</description>
<url>/modules/deploy</url>
<family>ModuleDeployment</family>
<lifecycle>internal</lifecycle>
<authentication>admin</authentication>
</webscript>