Foros de discusión

unable to import user :Invalid nameException

Ram A, modificado hace 11 años.

unable to import user :Invalid nameException

Junior Member Mensajes: 76 Fecha de incorporación: 16/01/13 Mensajes recientes
Hi,

I am using liferay 6.0.6 and it is importing the users from ldap.
While importing the users it is giving the below exception for some users.


10:29:06,593 ERROR [PortalLDAPImporterImpl:507] Unable to import user CN=HLCUK W\\\H Terminal - EHLCUK064D,OU=Users,OU=OU_HLCUK: null:null:{samaccountname=sAMAccountName: EG0064D}
javax.naming.InvalidNameException: CN=HLCUK W\\\\\H Terminal - EHLCUK064D,OU=Users,OU=OU_HLCUK,DC=gen,DC=sample,DC=domain,DC=com: [LDAP: error code 34 - 0000208F: LdapErr: DSID-0C090654, comment: Error processing name, data 0, vece ]; remaining name 'CN=HLCUK W\\\\\H Terminal - EHLCUK064D,OU=Users,OU=OU_HLCUK,DC=gen,DC=sample,DC=domain,DC=com'

at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_getAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown Source)
at javax.naming.directory.InitialDirContext.getAttributes(Unknown Source)
at com.liferay.portal.security.ldap.PortalLDAPUtil._getAttributes(PortalLDAPUtil.java:734)
at com.liferay.portal.security.ldap.PortalLDAPUtil.getUserAttributes(PortalLDAPUtil.java:501)
at com.liferay.portal.security.ldap.MyPortalLDAPImporterImpl.importFromLDAPByUser(MyPortalLDAPImporterImpl.java:492)
at com.liferay.portal.security.ldap.MyPortalLDAPImporterImpl.importFromLDAP(MyPortalLDAPImporterImpl.java:179)
at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAP(PortalLDAPImporterImpl.java:41)
at com.liferay.portal.security.ldap.MyPortalLDAPImporterImpl.importFromLDAP(MyPortalLDAPImporterImpl.java:85)
at com.liferay.portal.security.ldap.PortalLDAPImporterUtil.importFromLDAP(PortalLDAPImporterUtil.java:30)
at com.liferay.portlet.admin.messaging.LDAPImportMessageListener.doReceive(LDAPImportMessageListener.java:27)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
at sun.reflect.GeneratedMethodAccessor1106.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:54)
at $Proxy238.receive(Unknown Source)
at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:73)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


What i am thinking is ,the characters '\' presented in the username causes the exception .Am i correct.

Does anybody faces this issue?

Please help me to solve this issue.

Thanks in advance
Ram A