我一直在搜索 IBM 文档以试图找到它,但我一直空着。有谁知道使用 wsadmin 为 WAS 7.0 设置配置“Web 身份验证行为”的相关脚本/命令?
我正在查看的设置可以从控制台访问Security > Global Security > Web and SIP security > General Settings > Authenticate only when the URI is protected > Use available authentication data when an unprotected URI is accessed
更新:
根据评论,我切换了设置并在 {profile}/security.xml 中找到了更改的配置。
这是未选中“访问未受保护的 URI 时使用可用的身份验证数据”复选框的样子:
<webAuthAttrs xmi:id="DescriptiveProperty_8" name="com.ibm.wsspi.security.web.webAuthReq" value="lazy" type="String" displayNameKey="" nlsRangeKey="" hoverHelpKey="" range="lazy,persisting,always" inclusive="false" firstClass="false"/>
这是我检查后的样子(这是我试图用 wsadmin 做的):
<webAuthAttrs xmi:id="DescriptiveProperty_8" name="com.ibm.wsspi.security.web.webAuthReq" value="persisting" type="String" displayNameKey="" nlsRangeKey="" hoverHelpKey="" range="lazy,persisting,always" inclusive="false" firstClass="false"/>
所以现在的问题是,如何使用 wsadmin 更新这个特定的属性?