首页 文章

WSO2身份服务器外部JDBC存储

提问于
浏览
0

我想使用外部JDBC存储作为默认存储而不是默认的LDAP存储 . 按照此链接中的文档进行操作 .

http://docs.wso2.org/wiki/display/IS400/Configuring+an+External+JDBC+User+Store

获得以下异常感谢任何帮助 .

启动LDAP server.java.lang.NullPointerException时发生未知异常:Name为null

2 回答

  • 2

    您可以使用外部JDBC用户存储配置WSO2 IS 4.0.0 . 问题是由于文档(1)中的说明存在问题,因为缺少某些配置步骤 . 我创建了jira [DOCUMENTATION-17]来跟踪此doc问题 . 请按照以下步骤将IS 4.0.0与外部jdbc用户存储连接起来 .

    1)从user-mgt.xml [IS_Home / repository / conf]将UserStoreManager类更改为JDBCUserStoreManager,并将相关的数据库连接属性添加到它中,如(1)中所述

    2)在JDBCUserStoreManager中添加'passwordHashMethod'属性,并在 /repository/conf/user-mgt.xml中将值设置为'SHA'或'PLAIN_TEXT' . 例如:<Property name =“passwordHashMethod”> SHA </ Property>

    3)将'MultiTenantRealmConfigBuilder'属性的值设置为 /repository/conf/user-mgt.xml中的'org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder' .

    例如:<Property name =“MultiTenantRealmConfigBuilder”> org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder </ Property>

    4)在tenant-mgt.xml中启用JDBCTenantManager,并注释掉CommonHybridLDAPTenantManager的config部分 .

    完成上述配置后,您将能够成功将WSO2 Identity Server配置为外部jdbc用户存储 .

    (1)http://docs.wso2.org/wiki/display/IS400/Configuring+an+External+JDBC+User+Store

  • 1

    我能够解决这个问题 .

    如果可能,请从WSO2 IS 4.0.0开始全新安装 .

    除了遵循文档中给出的设置JDBC数据存储区的指示;你需要做以下事情:

    • tenant-mgt.xml 中启用 JDBCTenantManager 并注释掉 CommonHybridLDAPTenantManager2

    • embedded-ldap.xml 中为EmbeddedLDAP设置 enable 属性为false

相关问题