wsadmin应用程序安装省略了安全角色到用户/组的映射



我在使用以下命令(见下文)从wsadmin命令行安装应用程序的.ear文件时遇到了一个问题,在我尝试从控制台手动执行此操作后,我从Websphere的"查看最后一个操作的管理脚本命令"中原样复制了该命令。问题是,在部署完成并转到应用程序后,我没有在详细属性下看到"安全角色到用户/组的映射"链接,但当我从控制台安装应用程序时,我确实看到了这一点,同时我使用快速路径方法接受所有默认值。附言:我在Windows 2008 R2 64位计算机上使用Websphere 7.0.0.23。此外,如果我省略了AdminApp.install()命令中的所有选项,只使用AdminApp.install('C:pathToMyEar'),我会看到Security映射链接,但我至少需要传递应用程序的名称,如果没有该名称,名称最终会变成一些随机字符串。

AdminApp.install('C:/fakpath/myApplication.ear','[-nopreCompileJSP-distributeApp-nouseMetaDataFromBinary-nodeployejb-appname myApplicationRestEAR-createMBeansForResources-noreloadEnabled-nodeployws-validateinstall warn-noprocessEmbeddedConfig-filepermission.dll=755#..so=755#..a=755#.[em>.sl=755-noallowDispatchRemoteInclude-noallowServiceRemoteInclude-asyncRequestDispatchType DISABLED-nouseAutoLink-MapModulesToServers[[myApplicationRest-myApplicationRest.war,WEB-INF/WEB.xmlWebSphere:cell=TestNode01Cell,node=TestNode01,server=server1]-MapRolesToUsers[[security-AppDeploymentOption.No AppDeploymentOption.Yes""AppDeploymentOption.No""]]')

非常感谢,Chethan

在-MapRolesToUsers块的末尾似乎有一些额外的参数。我不确定这些是否在抛出wsadmin。以下是关于MapRolesToUsers的IBM文档(来源):

AdminApp.install('myapp.ear', '[-MapRolesToUsers [["All Role" No Yes "" ""]["Every Role" Yes No "" ""] [DenyAllRole No No user1 group1]]]')
where {{"All Role" No Yes "" ""} corresponds to the following:
"All Role"  Represents the role name
No          Indicates to allow access to everyone (yes/no)
Yes         Indicates to allow access to all authenticated users (yes/no)
""          Indicates the mapped users
""          Indicates the mapped groups 

尝试将MapRolesToUsers块更改为:

 -MapRolesToUsers [[ security AppDeploymentOption.No AppDeploymentOption.Yes "" "" ]]

最新更新