WSO2IS-5.3.0 Pb 带密码管理 [英] WSO2IS-5.3.0 Pb with password management

查看:17
本文介绍了WSO2IS-5.3.0 Pb 带密码管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的应用程序从 wso2is-5.2.0 迁移到 wso2is-5.3.0.在 user-mngt.xml 我有来自 5.2.0

I'm migrating my app from wso2is-5.2.0 to wso2is-5.3.0. In user-mngt.xml I have from 5.2.0

<Property name="PasswordJavaRegEx">^[\S]{1,30}$</Property>
<Property name="PasswordJavaScriptRegEx">^[\S]{1,30}$</Property>
<Property name="PasswordJavaRegExViolationErrorMsg">Password length should be within 1 to 30 characters</Property> 

在 wso2is-5.3.0 carbon 控制台中,我将相同的值来自 Identity Providers > Resident > Password Policies > Password Pattern并重新启动 wso2is,但我仍然无法从 webservice 创建用户,出现以下错误:

In the wso2is-5.3.0 carbon console, I put the same values from Identity Providers > Resident > Password Policies > Password Pattern and restart wso2is, but I still cannot create a user from webservice, getting the following error :

引起:org.wso2.carbon.user.core.UserStoreException:密码在至少应该有 6 个字符在 org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:626)在 org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:585)在 org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPreAddUser(IdentityMgtEventListener.java:194)在 org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:1514)

Caused by: org.wso2.carbon.user.core.UserStoreException: Password at least should have 6 characters at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:626) at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:585) at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPreAddUser(IdentityMgtEventListener.java:194) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:1514)

无论我是否在 carbon 控制台中选中启用密码策略功能",都不会考虑我的值...是否有第三种方法(注册表?)来更改密码策略?

whether I check "Enable Password Policy Feature" or not in the carbon console, my values are not taken into account... Is there a third way (registry ?) to change password policy ?

问候

推荐答案

您需要设置 Password Policy Min Length(在您的情况下为 1)和 Password Policy Max 的匹配值长度(在您的情况下为 30)在居民 IdP -> 密码策略 -> 密码模式.

You need to set the matching values for Password Policy Min Length (to 1 in your case) and Password Policy Max Length (to 30 in your case) at Resident IdP -> Password Policies -> Password Patterns.

所有最小长度、最大长度和模式都应与给定的密码匹配才能成为有效密码.

All of the min length, max lengths, and pattern should be matched by the given password to become a valid one.

这篇关于WSO2IS-5.3.0 Pb 带密码管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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