Liferay:LDAP 身份验证不起作用

发布于 2024-12-05 20:54:32 字数 328 浏览 3 评论 0原文

LDAP 身份验证已启用。 测试 LDAP 连接返回成功。 测试 LDAP 用户返回用户列表。 测试 LDAP 组也成功。

我退出 [email protected] 并尝试登录从“测试 LDAP 用户”返回的用户。 认证失败。

Liferay 很快就会抛出身份验证失败,就好像它甚至没有检查 Active Directory 一样。

有什么建议吗?谢谢!

LDAP Authentication has been enabled.
Test LDAP Connection returns successful.
Test LDAP Users returns with a list of users.
Test LDAP Groups is successful as well.

I sign out of [email protected] and try logging in as on of the users returned from "Test LDAP Users."
Authentication fails.

Liferay throws authentication fails very quickly as if it did not even check against Active Directory.

Any suggestions? Thanks!

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

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

发布评论

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

评论(3

2024-12-12 20:54:32

Liferay 不连接到 LDAP 进行身份验证。它将 LDAP 实体(用户/组)导入到它自己的数据库中。仅在导入后,您才能通过 LDAP(Liferay 的用户副本)中的用户进行身份验证。

您是如何设置 LDAP 导入设置的?启动时?定期?

更新:

  • 日志中是否存在有关 ldap 导入的错误?
  • 您使用哪个版本的 Liferay?
  • 您是否启用了导出到 LDAP 的功能? (这对我来说从来没有用过,这意味着导入因导出而失败)

Liferay does not connect to LDAP to do authentication. It imports LDAP entities (user/groups) into it's own db. Only after import you can authenticate with user from LDAP (Liferay's copy of user).

How did you setup LDAP import setting? On startup? Periodically?

UPDATE:

  • Do you have errors in logs regarding ldap import?
  • Which version of Liferay do you use?
  • Do you have export to ldap enabled? (that never worked for me, meaning import failed because of export)
南街女流氓 2024-12-12 20:54:32

我以前也遇到过这个问题。我现在解决了。

您是否启用 LDAP 导出。如果您使用控制面板,您将如何进行 LDAP 配置 ->然后进行门户设置
您可以检查用户部分的搜索过滤器并设置objectClass=inetOrgPerson

I also suffered with this problem before. I solved it now.

Do you enable the Export of LDAP. How you are doing the ldap configuration if you are using control panel-> Portal Setting then
You can check the search Filter of User portion and set objectClass=inetOrgPerson

£冰雨忧蓝° 2024-12-12 20:54:32

通常,开始排除这些问题的最佳方法是使用 WireShark 等工具获取网络跟踪,并查看正在进行哪些调用以及相应的回复。

Usually the best way to start troubleshooting these things is to get a network trace with something like WireShark and see what calls are being made as well as the corresponding replies.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文