OpenSSO 中的密码重置策略

发布于 2024-12-08 11:35:01 字数 379 浏览 1 评论 0原文

我必须实施密码重置策略...为此,我在 Glassfish 服务器上部署了 OpenSSO,并将 OpenDS 作为数据存储...我关注了 Indira 的博客...

使用 OpenDS 重置密码

并执行所有命令....由于我没有配置 SMTP,当我尝试重置特定用户的密码时(注意:我已指定 Gmail ID 作为该用户的电子邮件地址)在回答问题后,我收到确认消息

“您的密码已重置,但我们无法将其发送给您。请联系您的管理员。”

如何在 OpenSSO 和 OpenDS 中配置 SMTP?

I had to implement Password Reset policy....For which I had OpenSSO deployed on Glassfish server and OpenDS as the Data Store...I followed Indira's blog...

Password Reset With OpenDS

And executed all commands....Since I did not configure SMTP, when I try to Reset the Password of a particular User (Note: I hav specified a Gmail ID as the email Address of that user) after answering the Question, I get confirmation saying

"Your password has been reset but we are unable to send it to you. Contact your administrator."

How do I configure SMTP in OpenSSO and OpenDS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

镜花水月 2024-12-15 11:35:01

OpenDS(以及 OpenDJ,持续开放源代码项目)具有一些指向 SMTP 服务器的全局属性。
请注意,它目前不支持身份验证。

$ dsconfig set-global-configuration-prop --port 4444 --hostname 主机名 --bindDN "cn=目录管理器" --bindPassword 密码 --set smtp-server:smtp.example.com - -trustAll --无提示

亲切的问候,

Ludovic

OpenDS (and OpenDJ, the continuing open source project) has some global properties to point to the SMTP server.
Note that it doesn't support authentication at this point.

$ dsconfig set-global-configuration-prop --port 4444 --hostname hostname --bindDN "cn=Directory Manager" --bindPassword password --set smtp-server:smtp.example.com --trustAll --no-prompt

Kind regards,

Ludovic

青衫负雪 2024-12-15 11:35:01

我刚刚遇到了这个问题,所以为了记录,我认为这可能是因为您需要用真实的电子邮件地址替换 WEB-INF/classes/amPasswordResetModuleMsgs*.properties 文件中的

我发现我的身份验证调试日志文件中有此错误:

ERROR: Could not send email to user [Ljava.lang.String;@30720e48
com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <Password-Administrator>... Domain name required for sender address Password-Administrator
;
  nested exception is:
        com.sun.mail.smtp.SMTPSenderFailedException: 553 5.5.4 <Password-Administrator>... Domain name required for sender address Password-Administrator

        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)

我最初在 OpenAM 邮件列表上找到了解决方案:http://lists.forgerock.org/pipermail/openam/2012-April/005912.html

我使用这个 sed 命令一次更新所有文件:

sed -i -e 's/\<Password-Administrator\>/user@address\.com\.au/g' amPasswordResetModuleMsgs*.properties

I just had this problem, so for the record I think it's probably because you need to replace <Password-Administrator> in the WEB-INF/classes/amPasswordResetModuleMsgs*.properties files with a real email address.

I found that my Authentication debug log file had this error in it:

ERROR: Could not send email to user [Ljava.lang.String;@30720e48
com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <Password-Administrator>... Domain name required for sender address Password-Administrator
;
  nested exception is:
        com.sun.mail.smtp.SMTPSenderFailedException: 553 5.5.4 <Password-Administrator>... Domain name required for sender address Password-Administrator

        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)

I found the solution on the OpenAM mailing list originally: http://lists.forgerock.org/pipermail/openam/2012-April/005912.html

I used this sed command to do update all the files at once:

sed -i -e 's/\<Password-Administrator\>/user@address\.com\.au/g' amPasswordResetModuleMsgs*.properties
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文