javax.naming.NameNotFoundException: ldapDirectory

Problema

Quando tenti di sincronizzare gli utenti da LDAP, ottieni un errore nel registro di istanza simile al seguente:

com.day.cq.contentbus.ContentBusException: javax.naming.NameNotFoundException: ldapDirectory at com.day.cq.contentbus.importer.ldap.UserSynchronization.initDataSource(UserSynchronization.java:246) at com.day.cq.contentbus.importer.ldap.UserSynchronization.doInit(UserSynchronization.java:171) at com.day.cq.contentbus.importer.AbstractDriverSynchronization.init(AbstractDriverSynchronization.java:84) at com.day.cq.contentbus.importer.ldap.UserSynchronization.<init>(UserSynchronization.java:158) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at com.day.mozilla.javascript.NativeJavaClass.constructSpecific(Unknown Source) at com.day.mozilla.javascript.NativeJavaClass.construct(Unknown Source) at com.day.mozilla.javascript.ScriptRuntime.newObject(Unknown Source) at libs.LDAPTools.templates.ldapUserSynchronization.action.call(/libs/LDAPTools/templates/ldapUserSynchronization/action.esp:45) at com.day.cq.ecma.EcmaExecuter.callScript(EcmaExecuter.java:2414) at com.day.cq.ecma.EcmaExecuter.processSource(EcmaExecuter.java:626) at com.day.cq.ecma.host.Render.jsFunction_importFile(Render.java:288)

Soluzione

Assicurati che il tuo server LDAP sia raggiungibile da CQ.

Informazioni aggiuntive

Questo errore può verificarsi quando CQ non riesce a connettersi al tuo server LDAP.

Logo Adobe

Accedi al tuo account