【问题标题】:Can't Enforce password reset on WSo2IS?无法在 WSo2IS 上强制执行密码重置?
【发布时间】:2019-06-01 23:24:40
【问题描述】:

当我发送 SOAP 请求以更新强制密码重置值时,我在 SOAP UI 上获得 202 代码,并且用户没有收到更新密码的通知,并且 wso2carbon.log 显示以下内容:

INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'wso2admin@carbon.super [-1234]' 在 [2019-01-07 11:39:23,318+0200] 登录

我正在尝试在 WSO2 Identity Server 中使用 AdminForcedPasswordReset,并按照 {https://docs.wso2.com/display/IS530/Forced+Password+Reset} RecoveryEmail 类型中的步骤操作。

这是我的 SOAP 请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mgt="http://mgt.profile.user.identity.carbon.wso2.org" xmlns:xsd="http://mgt.profile.user.identity.carbon.wso2.org/xsd">
<soapenv:Header/>
<soapenv:Body>
    <mgt:setUserProfile>
        <mgt:username>omar.alaeldain</mgt:username>
        <mgt:profile>
            <xsd:fieldValues>
                <xsd:claimUri>http://wso2.org/claims/identity/adminForcedPasswordReset</xsd:claimUri>
                <xsd:fieldValue>true</xsd:fieldValue>
            </xsd:fieldValues>
            <xsd:profileName>default</xsd:profileName>
        </mgt:profile>
    </mgt:setUserProfile>
</soapenv:Body>

我希望用户 omar.alaeldain 在下次登录时收到一封电子邮件通知以更新他的密码。

【问题讨论】:

    标签: wso2is simplesamlphp


    【解决方案1】:

    请验证您是否进行了以下更改。

    1. 您需要从以下配置中启用“通过恢复电子邮件启用密码重置”。 https://docs.wso2.com/display/IS530/Forced+Password+Reset?preview=/60494003/60494255/forced-password-reset-residentidp.png

    2. 需要配置“发件人邮箱”。

    打开 /repository/conf 目录中的 output-event-adapters.xml 文件。 在标签下配置您需要为此服务配置的电子邮件服务器的相关属性值。

    <adapterConfig type="email">
        <!-- Comment mail.smtp.user and mail.smtp.password properties to support connecting SMTP servers which use trust
        based authentication rather username/password authentication -->
        <property key="mail.smtp.from">abcd@gmail.com</property>
        <property key="mail.smtp.user">abcd</property>
        <property key="mail.smtp.password">xxxx</property>
        <property key="mail.smtp.host">smtp.gmail.com</property>
        <property key="mail.smtp.port">587</property>
        <property key="mail.smtp.starttls.enable">true</property>
        <property key="mail.smtp.auth">true</property>
        <!-- Thread Pool Related Properties -->
        <property key="minThread">8</property>
        <property key="maxThread">100</property>
        <property key="keepAliveTimeInMillis">20000</property>
        <property key="jobQueueSize">10000</property>
    </adapterConfig>
    
    1. 为用户 omar.alaeldain 配置电子邮件地址。

    一旦完成所有三个步骤,就会调用soap服务。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-14
      • 2012-09-23
      相关资源
      最近更新 更多