如何在 WSO2 Identity Server 5.3.0 中从 CSV 批量导入配置密码过期时间 [英] How to configure password expire time in bulk import from CSV in WSO2 Identity Server 5.3.0

查看:16
本文介绍了如何在 WSO2 Identity Server 5.3.0 中从 CSV 批量导入配置密码过期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我使用的是 WSO2 身份服务器 5.3.0.我想通过从 CSV 文件使用批量导入来创建用户.我能够成功地做到这一点.

Hi I am using WSO2 Identity Server 5.3.0. I want to create users by using bulk import from a CSV File. I am able to do it successfully.

问题陈述:

用户已成功创建,但在文档链接中,提到用户的默认密码有效期为 24 小时.有没有什么办法可以通过配置关闭这个设置.或 增加此密码到期的时间.

Users are created successfully but in the documentation link, it is mentioned that the default password expiry for the users is 24 hours. Is there any way possible through configuration that we can turn this setting off. OR Increase the time for this password expiry.

文档链接:

我从 user-mgt.xml 文件启用了批量存储.

I enabled the Bulk storage from user-mgt.xml file.

 <Property name="MembershipAttribute">member</Property>
            <Property name="BackLinksEnabled">false</Property>
            <Property name="UsernameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property>
            <Property name="UsernameJavaScriptRegEx">^[\S]{3,30}$</Property>
            <Property name="UsernameJavaRegExViolationErrorMsg">Username pattern policy violated</Property>
            <Property name="PasswordJavaRegEx">^[\S]{5,30}$</Property>
            <Property name="PasswordJavaScriptRegEx">^[\S]{5,30}$</Property>
            <Property name="PasswordJavaRegExViolationErrorMsg">Password length should be within 5 to 30 characters</Property>
            <Property name="RolenameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property>
            <Property name="RolenameJavaScriptRegEx">^[\S]{3,30}$</Property>
            <Property name="SCIMEnabled">true</Property>
            <Property name="IsBulkImportSupported">true</Property>
            <Property name="EmptyRolesAllowed">true</Property>
            <Property name="PasswordHashMethod">PLAIN_TEXT</Property>
            <Property name="MultiAttributeSeparator">,</Property>
            <Property name="MaxUserNameListLength">500</Property>
            <Property name="MaxRoleNameListLength">100</Property>
            <Property name="kdcEnabled">false</Property>
            <Property name="defaultRealmName">WSO2.ORG</Property>
            <Property name="UserRolesCacheEnabled">true</Property>
            <Property name="ConnectionPoolingEnabled">false</Property>
            <Property name="LDAPConnectionTimeout">5000</Property>
            <Property name="ReadTimeout"/>
            <Property name="RetryAttempts"/>  

但是这次我在这里找不到任何配置来配置.

But I cannot find any configuration here to configure this time.

推荐答案

另一种破解方法是直接从用户存储数据库中直接删除所有用户的密码到期属性.您可以简单地为所有用户设置UM_REQUIRE_CHANGE"值,使其密码在 24 小时后仍然有效.

One other hack would be directly removing this password expiry property for all the users from the userstore database directly. You can simply set "UM_REQUIRE_CHANGE" value for all the users to make their passwords work even after 24hours.

UPDATE UM_USER SET UM_REQUIRE_CHANGE=FALSE;

这篇关于如何在 WSO2 Identity Server 5.3.0 中从 CSV 批量导入配置密码过期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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