【发布时间】:2017-07-16 15:55:54
【问题描述】:
使用 OpenAM SDK 更改数据存储配置时,除密码外,其他任何操作都可以正常工作。即使我提供相关属性“sun-idrepo-ldapv3-config-authpw”,密码也会重置为空字符串。我尝试了很多情况:从属性中删除字段,并给出一组字符串。他们都没有让我的密码完好无损!
这是我的代码的一部分:
fun setDataStoreConfig(realmName: String, storeName: String, newAttrs: Map<*,*>) {
val srvConf = ServiceConfigManager(IdConstants.REPO_SERVICE, getUserSSOToken())
val orgConf = srvConf.getOrganizationConfig(realmName, null)
val subConf = orgConf.getSubConfig(storeName)
val attrs = subConf.attributes
attrs.putAll(newAttrs)
attrs["sun-idrepo-ldapv3-config-authpw"]=setOf("*********")
subConf.attributes = attrs
}
【问题讨论】:
-
显然,当将此信息保存到目录服务中时,添加了一些盐!我不确定盐是由 OpenAM 还是 OpenDJ 本身添加的!请帮帮我!
标签: encryption ldap single-sign-on openam opensso