Liferay 中的 LDAP 身份验证不起作用

LDAP Authentication in Liferay does not work

我将 liferay 配置为使用 LDAP (AD) 进行身份验证。导入成功,用户可以登录。

当我激活配置面板中 LDAP 选项卡上的 "Required" 复选框时,登录失败并且我在 liferay 日志中看到以下行:

15:22:26,766 DEBUG [http-bio-80-exec-6][LDAPSettingsUtil:52] Search filter before transformation (sAMAccountName=@screenname@)
15:22:26,766 DEBUG [http-bio-80-exec-6][LDAPSettingsUtil:67] Search filter after transformation (sAMAccountName=@screenname@)

第二行的@screenname@不应该用登录表单中的用户名代替吗?

配置:

How do users authenticate 设置为 By Screen Name

Authentication Search Filter 设置为 (sAMAccountName=@screenname@)

Liferay 版本:Liferay Portal Community Edition 6.2 CE GA2

您可以查看以下配置。

Authentication Search Filter - (sAMAccountName=@screen_name@)
Import search filter - (objectClass=person)

同时检查是否在门户设置 - 身份验证 - 常规中将身份验证设置为 screenname