0

我想启用将用户从 Liferay 导出到我的 OpenLDAP 服务器。所以我在配置页面上启用了复选框,并在 LDAP 导出中设置了参数。

现在,当我尝试在 Liferay 中创建用户时,我得到:

暂时无法登录。

有什么建议么?

在此处输入图像描述

这是java控制台中的bt:

Caused by: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - object
class: value #1 invalid per syntax]; remaining name 'cn=myname,dc=myTest,dc=com'
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3054)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
        at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:397)
        at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:354)
        at com.sun.jndi.toolkit.ctx.ComponentContext.p_bind(ComponentContext.java:596)
        at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialCompositeContext.java:1
83)
        at javax.naming.InitialContext.bind(InitialContext.java:404)
        at com.liferay.portal.security.ldap.PortalLDAPExporterImpl.addUser(PortalLDAPExporterIm
pl.java:360)
        at com.liferay.portal.security.ldap.PortalLDAPExporterImpl.exportToLDAP(PortalLDAPExpor
terImpl.java:252)
        at com.liferay.portal.security.ldap.PortalLDAPExporterUtil.exportToLDAP(PortalLDAPExpor
terUtil.java:62)
        at com.liferay.portal.model.UserListener.exportToLDAP(UserListener.java:96)
        at com.liferay.portal.model.UserListener.onAfterUpdate(UserListener.java:72)
        ... 91 more
4

2 回答 2

0

Either you have wrong configuration, or you're stuck on a Liferay - LDAP bug. Here's the list of unresolved issues.

Please provide us an English error message next time, because all I see in your screenshot is... an error message.

于 2013-09-20T14:58:20.897 回答
0

如果您使用的是 Liferay 6.1 Community,那么该版本中存在一些未解决的 LDAP 相关错误。我遇到了许多问题,最终它通过了

随意询问是否有人有任何问题。

于 2015-03-08T21:55:49.057 回答