【问题标题】:JAAS isn't working in Websphere Application ServerJAAS 在 Websphere Application Server 中不起作用
【发布时间】:2013-05-03 16:04:33
【问题描述】:

我在Global Security->JAAS -> Application Login 下定义了我的登录模块。 但是我的服务器和部署的应用程序将如何知道它。 另外,当我尝试检查 全局安全性->启用管理安全性时,我收到一条错误消息:

Validation failed: SECJ7724E: Error in the user registry configuration unable to verify access to the user registry.
You must supply the primary administrative user name on the active registry or realm panels to enable security.

【问题讨论】:

    标签: java websphere jaas websphere-8


    【解决方案1】:

    您的应用程序通过 ibm-application-bnd.xml 了解 WAS 定义的安全角色。

    以下示例绑定了与 WAS 中定义的自定义 JDBC 注册表(CLIENT 角色)和 LDAP/AD(其他角色)匹配的角色:

    <?xml version="1.0" encoding="UTF-8"?>
    <application-bnd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                     xmlns="http://websphere.ibm.com/xml/ns/javaee"
                     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="CLIENT">
            <group name="Clients" />
         </security-role>
         <security-role name="STAFF">
            <group name="Contractors" access-id="CN=Contractors,OU=Some Unit,OU=Some Unit,o=StaffLDAP"/>
            <group name="ContractorsNoVPN" access-id="CN=ContractorsNoVPN,OU=Some Unit,OU=Some Unit,o=StaffLDAP"/>
            <group name="ContractorsVPN" access-id="CN=ContractorsVPN,OU=Some Unit,OU=Some Unit,o=StaffLDAP"/>
        </security-role>
        <security-role name="MANAGER">
            <group name="AssistantManagers" access-id="CN=AssistantManagers,OU=Some Unit,OU=Some Unit,OU=Some Unit,o=ManagersLDAP"/>
            <group name="Managers" access-id="CN=Managers,OU=Some Unit,OU=Some Unit,OU=Some Unit,o=ManagersLDAP"/>
            <group name="TestManagers"/>
        </security-role>
        <security-role name="ADMIN">
            <group name="Admin" access-id="group:someRealm/CN=Team,OU=Groups,OU=Divison,OU=Region,o=AdminsLDAP"/>
        </security-role>
    </application-bnd>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-05-21
      • 2014-03-22
      • 1970-01-01
      • 2017-10-21
      • 2017-10-07
      • 2015-05-05
      • 1970-01-01
      相关资源
      最近更新 更多