0
votes

I would like to enable the export of the users from Liferay into my OpenLDAP server. So I enabled the ceckbox on the configuration page and I set the parameters in the LDAP export.

Now, when I try to create a user in Liferay I get:

Login is temporarily unavailable.

any suggestions?

enter image description here

this is the bt in java console:

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
2
which Liferay version ? each one has a different LDAP bugyannicuLar

2 Answers

0
votes

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.

0
votes

If you're using Liferay 6.1 Community there are a few unresolved LDAP related bugs in that version. I faced a number of problems and ultimately it worked by

Feel free to ask if anyone's got any questions.