WSO2 Identity Server(5.7.0)辅助用户存储连接密码的外部加密

时间:2019-01-30 22:32:58

标签: ldap wso2 wso2is

我正在WSO2 Identity Server中为我的密码使用密码加密方法。我能够以这种方式创建到我的主要用户存储的连接,但是当我尝试创建到我的辅助用户存储的连接时,我收到以下消息:

TID: [-1234] [] [2019-01-30 20:44:10,356] DEBUG {org.wso2.carbon.user.core.tracker.UserStoreManagerRegistry} -  Adding UserStoreManager with name: org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager. UserStoreManager class: org.w
so2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager@1b128113
TID: [-1234] [] [2019-01-30 20:44:10,361] DEBUG {org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -  External password management is disabled.
TID: [-1234] [] [2019-01-30 20:44:10,361] DEBUG {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Start initializing class with the first option
TID: [-1234] [] [2019-01-30 20:44:10,361] DEBUG {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Initialization Started 1548881050361
TID: [-1234] [] [2019-01-30 20:44:10,361] DEBUG {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Checking LDAP configurations
TID: [-1234] [] [2019-01-30 20:44:10,361] DEBUG {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  ReadGroups is enabled for [SECONDARY-USERSTORE] 
TID: [-1234] [] [2019-01-30 20:44:10,362] DEBUG {org.wso2.carbon.user.core.ldap.LDAPConnectionContext} -  Connection Name :: [Connection Name], Connection URL :: [Connection Url]
TID: [-1] [] [2019-01-30 20:44:10,451] DEBUG {org.wso2.carbon.humantask.core.scheduler.SimpleScheduler} -  LOAD IMMEDIATE started
TID: [-1] [] [2019-01-30 20:44:10,452] DEBUG {org.wso2.carbon.humantask.core.scheduler.SimpleScheduler} -  Started loading 3000 jobs from db
TID: [-1] [] [2019-01-30 20:44:10,453] DEBUG {org.wso2.carbon.humantask.core.scheduler.SimpleScheduler} -  Beginning a new transaction
TID: [-1234] [] [2019-01-30 20:44:10,538] ERROR {org.wso2.carbon.user.core.ldap.LDAPConnectionContext} -  Error obtaining connection. [LDAP: error code 49 - Invalid Credentials]
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]

我不知道为什么这会在我的辅助用户存储中发生,而不是在我的主要用户存储中发生。我使用cipher-tool.properties文件进行配置,设置相同:

UserStore.[UserStoreName].Property.ConnectionPassword=repository/deployment/server/userstores/[UserStoreName].xml//UserStoreManager/Property[@name='ConnectionPassword'],false

在我的cipher-text.properties文件中:

UserStore.[UserStoreName].Property.ConnectionPassword=[LdapPassword]

如果我删除了与密码配置的连接并将密码直接放在文件中,则可以使连接没有问题。 为什么此配置不起作用?

0 个答案:

没有答案