Fórum

LDAP import issue Liferay 6

Alexandre Terrasson, modificado 12 Anos atrás.

LDAP import issue Liferay 6

Junior Member Postagens: 25 Data de Entrada: 15/07/10 Postagens Recentes
Hi,
I got some problems with the LDAP import in Liferay 6.

Whatever I make the LDAP configuration into the Control Panel or put it in the portal-ext.properties it's same : the users import don't work.
The first time I start/restart the server after the LDAP configuration, I got some strange error (Password policy exception) and after that, the import doesn't even launch. Sometimes the server won't start after the import tried and failed.

Here my LDAP parameters in the portal-ext.properties :


ldap.auth.enabled=true

ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.base.provider.url=ldap://192.168.1.24:10638
ldap.base.dn=o=My Corpo Test
ldap.security.principal=uid=admin,OU=Users,ou=Admin,o=My Corpo Test
ldap.security.credentials=admin

ldap.user.mappings=screenName=cn\nemailAddress=mail\nfirstName=displayname\nlastName=sn\njobTitle=description\ngroup=memberOf\npassword=userPassword
ldap.user.impl=com.liferay.portal.security.ldap.LDAPUser
ldap.user.default.object.classes=top,person,inetOrgPerson,organizationalPerson

ldap.group.mappings=groupName=cn\nuser=member

ldap.import.enabled=true
ldap.import.on.startup=true
ldap.import.interval=5
ldap.import.user.search.filter=(objectClass=inetOrgPerson)
ldap.import.group.search.filter=(objectClass=groupOf*)

ldap.export.enabled=false

ldap.import.method=user

auth.pipeline.pre=com.liferay.portal.security.auth.LDAPAuth
ldap.auth.search.filter=(cn=@screen_name@)

ldap.password.policy.enabled=true

passwords.encryption.algorithm=NONE


Those parameters works well with Liferay 5.2.3.
I use the Liferay-Tomcat bundle (versions 6 and 5.2.3).

Any help or suggestions would be greatly appreciated because I really don't understand what the problem .....

Thanks.
thumbnail
Drew Blessing, modificado 12 Anos atrás.

RE: LDAP import issue Liferay 6

Junior Member Postagens: 78 Data de Entrada: 27/01/11 Postagens Recentes
I am not exactly sure about the exception you are getting. I know the portal has a password policy but I was under the impression that LDAP synchronization overrides password policy. Maybe that's just CAS and I'm mistaken. I would suggest checking out the password policy settings in the portal. They could have changed those default policies in version 6. Maybe your accounts are not meeting that policy.

Below is the LDAP sync section from our Liferay 6 portal-ext.properties file. Maybe adding some of the additional property definitions will help you out. For reference, we're using OpenLDAP.

##
## ldap properties

ldap.auth.enabled=true
ldap.base.provider.url=ldap://ldap.ourdomain.org
ldap.base.dn=dc=ourdomain,dc=org
ldap.security.principal=cn=pam,dc=ourdomain,dc=org
ldap.security.credentials=supersecurepassword
ldap.referral=follow

ldap.auth.method=bind

ldap.auth.search.filter=(mail=@email_address@)
ldap.user.mappings=screenName=uidNumber\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\ngroup=groupMembership\nfullName=gecos
ldap.import.enabled=true
ldap.import.on.startup=false
ldap.import.interval=10 
ldap.import.user.search.filter=(objectClass=inetOrgPerson)
ldap.import.group.search.filter=(objectClass=groupOfUniqueNames)
ldap.import.method=user
Harsha M, modificado 11 Anos atrás.

RE: LDAP import issue Liferay 6

New Member Postagens: 15 Data de Entrada: 26/09/08 Postagens Recentes
I am facing a similar issue using Domino LDAP integration with Liferay 6.1 CE ga1

The setting are successful but the users are not imported.
I was able to configure Microsoft Active Directory without any issues. But not sure why the Domino LDAP is giving this issue.

Regards,
Harsha
David Welch, modificado 9 Anos atrás.

RE: LDAP import issue Liferay 6

Junior Member Postagens: 87 Data de Entrada: 19/02/15 Postagens Recentes
I'm tring to configure Domino LDAP also, any luck?