【问题标题】:Liferay and export users into LDAPLiferay 并将用户导出到 LDAP
【发布时间】:2015-03-19 15:18:27
【问题描述】:

我想将用户从 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

【问题讨论】:

  • Liferay 的哪个版本?每个都有不同的 LDAP 错误

标签: ldap liferay-6 openldap


【解决方案1】:

要么您的配置有误,要么您遇到了 Liferay - LDAP 错误。 Here 的未解决问题列表。

下次请向我们提供英文错误消息,因为我在您的屏幕截图中看到的只是……一条错误消息。

【讨论】:

    【解决方案2】:

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

    如果有人有任何问题,请随时询问。

    【讨论】:

      猜你喜欢
      • 2012-08-13
      • 1970-01-01
      • 2012-08-17
      • 1970-01-01
      • 1970-01-01
      • 2014-07-25
      • 1970-01-01
      • 2012-08-12
      • 1970-01-01
      相关资源
      最近更新 更多