具有基于文件的用户注册表的WebSphere 7中用户/组映射的安全角色 [英] Security role to user/group mapping in WebSphere 7 with file-based user registry

查看:99
本文介绍了具有基于文件的用户注册表的WebSphere 7中用户/组映射的安全角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试进行基于表单的身份验证. 我正确配置了部署描述符,并执行了IBM Infocenter中列出的与仅使用基于文件的注册表启用用户认证"相关的所有操作,将用户映射到适当的角色,单击确定",进行了测试,然后它可以工作.但是当我转到管理控制台中的其他位置时,我意识到用户/组映射的安全角色"中没有确定",保存"或应用"按钮,因此我所做的所有更改只能采取措施当我停留在该页面上时,当我单击控制台中的链接时,所有更改都会立即重置. 我认为这可能是控制台中的错误.有解决方案吗?也许是直接使用这些属性编辑xml文件的方法?

I am trying to make a form-based authentication. I configured my deployment descriptor correctly, did all the actions listed in IBM Infocenter related to "enabling user authentication using file-based registry only", mapped my users to appropriate roles, clicked OK, tested and it worked. But when I moved on to something else in the administrative console, I realised that there are no "OK", "Save" or "Apply" buttons in "Security role to user/group mapping", thus all my changes can take action only while I stay on that page, and as soon as I click a link in the console all the changes are instantly reset. I think it might be a bug in the console. Is there a solution to it? Perhaps a way to directly edit an xml file with these properties?

谢谢.

推荐答案

好的,所以显然WAS7存在此错误,您无法保存指定的配置.我以某种方式设法找到了自己的问题的解决方案,这里是: 我在EAR的META-INF文件夹中创建了一个名为ibm-application-bnd.xml的文件,其结构如下:

Okay, so apparently WAS7 has this bug where you can't save the stated configuration. I somehow managed to find a solution for my own question, and here it is: I created a file named ibm-application-bnd.xml in META-INF folder of my EAR which has a structure like this:

<?xml version="1.0" encoding="UTF-8"?>    
<application-bnd
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee
         http://websphere.ibm.com/xml/ns/javaee/ibm-application-bnd_1_0.xsd"
   version="1.0">

    <security-role name="operator">
        <user name="admin" />
        <group name="operator" />
    </security-role>
</application-bnd>

似乎可以正常工作.

这篇关于具有基于文件的用户注册表的WebSphere 7中用户/组映射的安全角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆