Issue

When you try to import your LDAP users to CQ, you get an error similar to the following:

import failed: java.lang.IllegalArgumentException: Exact Label must not be empty. java.lang.IllegalArgumentException: Exact Label must not be empty. at com.day.cq.util.Text.validateLabel(Text.java:1759) at com.day.cq.jcr.adapter.TicketAdapter$PageCreator.run(TicketAdapter.java:3357) at com.day.cq.jcr.adapter.TicketAdapter.runLocked(TicketAdapter.java:3231) at com.day.cq.jcr.adapter.TicketAdapter.createPage (TicketAdapter.java:2233) at com.day.cq.jcr.adapter.TicketAdapter.createPage(TicketAdapter.java:881) at com.day.cq.jcr.adapter.TicketAdapter.createPage(TicketAdapter.java:872) at com.day.cq.delivery.DeliveryTicketWrapper.createPage(DeliveryTicketWrapper.java:111) at com.day.cq.contentbus.importer.ldap.LdapImporter.createFolder(LdapImporter.java:244)

Solution

In /config/repository/ldapdefaultfinder, check the section under to see whether you correctly set the parameters from LDAP. For example, if the user LDAP object does not have a UID, and you set the User ID to use UID, this error appears in error.log. Make sure that you are using the correct matching between your LDAPuser object and the CQ user page. You can set CQ authentication logger to DEBUG and analyze the details.

Additional information

When this error occurs, it is likely that the LDAP configuration file isn't configured properly.

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online