Foren
[LDAP: error code 34 - invalid DN]; remaining name 'ldapname'
wisnu Wirandanu, geändert vor 7 Jahren.
[LDAP: error code 34 - invalid DN]; remaining name 'ldapname'
New Member Beiträge: 2 Beitrittsdatum: 17.12.09 Neueste Beiträge
Hi
I have just installed Liferay Portal 7 on centos with Tomcat Server version: Apache Tomcat/8.0.32.
i have configured LDAP authentication in instance setting as follow :
LDAP Setting
Server Name : servers.apr.com
Base Provider URL : ldap://myldap.apr.com:389
Base DN : dc=apr,dc=com
Principal :cn=administrator,dc=apr,dc=com
Credentials : myspassword
setting above result test LDAP connection is successfull --> (Liferay has successfully connected to the LDAP server.)
Users
Authentication Search Filter : (uid=@screen_name@)
Import Search Filter : (&(objectClass=posixAccount))
User Mapping
UUID : entryUUID
Screen Name : uid
Email Address : mail
Password : userPassword
First Name : givenName
Last Name : sn
Full Name : displayName
Job Title : title
Group : gidNumber
Setting above result test LDAP users display a subset and has been display all user, i think this is prefect.
Groups
Import Search Filter : (&(objectClass=posixGroup)(objectClass=top)(memberUid=*))
Group Mapping
Group Name : cn
Description : description
User : memberuid
Setting above result test LDAP groups display a subset and has been display all groups, i think this is prefect either.
Export
Users DN : ou=People,dc=apr,dc=com
User Default Object Classes : top,person,inetOrgPerson,organizationalPerson
Groups DN : ou=Group,dc=apr,dc=com
Group Default Object Classes : posixGroup,top,person,inetOrgPerson,organizationalPerson
So i configure it out in order to all groups and user LDAP will be imported to liferay. i check all group imported but "users" member not display. it just say 0 users.
in portal-ext.propertis i configure as below.
i obtaining this error:
PLEASE HELP ME...!! sos!!
I have just installed Liferay Portal 7 on centos with Tomcat Server version: Apache Tomcat/8.0.32.
i have configured LDAP authentication in instance setting as follow :
LDAP Setting
Server Name : servers.apr.com
Base Provider URL : ldap://myldap.apr.com:389
Base DN : dc=apr,dc=com
Principal :cn=administrator,dc=apr,dc=com
Credentials : myspassword
setting above result test LDAP connection is successfull --> (Liferay has successfully connected to the LDAP server.)
Users
Authentication Search Filter : (uid=@screen_name@)
Import Search Filter : (&(objectClass=posixAccount))
User Mapping
UUID : entryUUID
Screen Name : uid
Email Address : mail
Password : userPassword
First Name : givenName
Last Name : sn
Full Name : displayName
Job Title : title
Group : gidNumber
Setting above result test LDAP users display a subset and has been display all user, i think this is prefect.
Groups
Import Search Filter : (&(objectClass=posixGroup)(objectClass=top)(memberUid=*))
Group Mapping
Group Name : cn
Description : description
User : memberuid
Setting above result test LDAP groups display a subset and has been display all groups, i think this is prefect either.
Export
Users DN : ou=People,dc=apr,dc=com
User Default Object Classes : top,person,inetOrgPerson,organizationalPerson
Groups DN : ou=Group,dc=apr,dc=com
Group Default Object Classes : posixGroup,top,person,inetOrgPerson,organizationalPerson
So i configure it out in order to all groups and user LDAP will be imported to liferay. i check all group imported but "users" member not display. it just say 0 users.
in portal-ext.propertis i configure as below.
sites.control.panel.members.visible=true
liferay.home=${resource.repositories.root}
#Auto Deploy
auto.deploy.listeners=\
com.liferay.portal.deploy.auto.HookAutoDeployListener,\
com.liferay.portal.deploy.auto.LayoutTemplateAutoDeployListener,\
com.liferay.portal.deploy.auto.ModuleAutoDeployListener,\
com.liferay.portal.deploy.auto.PortletAutoDeployListener,\
com.liferay.portal.deploy.auto.ThemeAutoDeployListener,\
com.liferay.portal.deploy.auto.WebAutoDeployListener
auto.deploy.enabled=true
auto.deploy.deploy.dir=${liferay.home}/deploy
auto.deploy.dest.dir=
auto.deploy.default.dest.dir=../webapps
auto.deploy.glassfish.dest.dir=${com.sun.aas.instanceRoot}/autodeploy
auto.deploy.jboss.dest.dir=${jboss.home.dir}/standalone/deployments
auto.deploy.jboss.dest.dir[5]=${jboss.server.home.dir}/deploy
auto.deploy.jetty.dest.dir=${jetty.home}/webapps
auto.deploy.jonas.dest.dir=${jonas.base}/deploy
auto.deploy.resin.dest.dir=${resin.home}/webapps
auto.deploy.tomcat.dest.dir=${catalina.base}/webapps
auto.deploy.weblogic.dest.dir=${env.DOMAIN_HOME}/autodeploy
auto.deploy.websphere.dest.dir=${env.USER_INSTALL_ROOT}/wsadmin-deploy
auto.deploy.unpack.war=true
auto.deploy.copy.commons.logging=true
auto.deploy.copy.log4j=true
auto.deploy.custom.portlet.xml=false
auto.deploy.tomcat.conf.dir=../conf/Catalina/localhost
auto.deploy.tomcat.lib.dir=../common/lib/ext
#Plugin
plugin.types=portlet,theme,layout-template,hook,web
i obtaining this error:
DEBUG [liferay/scheduled_user_ldap_import-1][DefaultPortalLDAP:283] LDAP group attribute cn: microjasa
07:40:42,168 DEBUG [liferay/scheduled_user_ldap_import-1][DefaultPortalLDAP:283] LDAP group attribute memberUid: jim.northup
07:40:42,168 DEBUG [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:1130] Importing 1 users from LDAP server 31372 to company 20116
07:40:42,168 DEBUG [liferay/scheduled_user_ldap_import-1][DefaultLDAPSettings:41] -- listing properties --_uuid=entryUUID_screenName=uid_emailAddress=mail_fullName=displayName_group=gidNumber_jobTitle=title_firstName=givenName_password=userPassword_lastName=sn_ [Sanitized]
07:40:42,168 DEBUG [liferay/scheduled_user_ldap_import-1][DefaultLDAPSettings:41] -- listing properties --_ [Sanitized]
07:40:42,168 DEBUG [liferay/scheduled_user_ldap_import-1][DefaultLDAPSettings:41] -- listing properties --_jabberSn=_smsSn=_birthday=_twitterSn=_facebookSn=_skypeSn=_ [Sanitized]
07:40:42,168 DEBUG [liferay/scheduled_user_ldap_import-1][DefaultLDAPSettings:41] -- listing properties --_ [Sanitized]
07:40:42,169 ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:750] Unable to import group cn=microjasa,ou=Group: null:null:{cn=cn: microjasa}
javax.naming.InvalidNameException: jim.northup: [LDAP: error code 34 - invalid DN]; remaining name 'jim.northup'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3075)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888)
at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1329)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:235)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:141)
at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:152)
at com.liferay.portal.security.ldap.internal.DefaultPortalLDAP._getAttributes(DefaultPortalLDAP.java:1059)
at com.liferay.portal.security.ldap.internal.DefaultPortalLDAP.getUserAttributes(DefaultPortalLDAP.java:656)
at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importUsers(LDAPUserImporterImpl.java:1143)
at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importFromLDAPByGroup(LDAPUserImporterImpl.java:743)
at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importUsers(LDAPUserImporterImpl.java:449)
at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importUsers(LDAPUserImporterImpl.java:395)
at com.liferay.portal.security.ldap.internal.messaging.UserImportMessageListener.doReceive(UserImportMessageListener.java:89)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:65)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
at java.lang.Thread.run(Thread.java:745)
PLEASE HELP ME...!! sos!!