Foren

LDAP Import : User not getting store in database properly

sudhir m korde, geändert vor 14 Jahren.

LDAP Import : User not getting store in database properly

New Member Beiträge: 10 Beitrittsdatum: 01.07.09 Neueste Beiträge
Hi
I am trying to import user from LDAP but it is importing user but not inserting records in cotact table of liferay database. It is just inserting record in user_ table. I would like to know why liferay not inserting data into contact table. Please have a look at my ldap mapping attributs
ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.base.provider.url=ldap://server:389
ldap.base.dn=DC=ad,DC=test,DC=com
ldap.security.principal=test
ldap.security.credentials=test
ldap.auth.enabled=true
ldap.auth.required=true
ldap.auth.method=bind
ldap.auth.password.encryption.algorithm.types=MD5,SHA
ldap.auth.search.filter=(sAMAccountName=@screen_name@)
ldap.attrs.transformer.impl=com.liferay.portal.security.ldap.AttributesTransformer
ldap.user.impl=com.liferay.portal.security.ldap.LDAPUser
ldap.user.default.object.classes=top,person,inetOrgPerson,organizationalPerson
ldap.user.mappings=screenName=sAMAccountName\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title\ngroup=groupMembership
ldap.group.mappings=groupName=cn\ndescription=description\nuser=member
ldap.import.enabled=true
ldap.import.on.startup=true
ldap.import.interval=5
#ldap.import.user.search.filter=(objectClass=user)
ldap.import.user.search.filter=(&(objectCategory=Person)(sAMAccountName=sachins))
ldap.import.group.search.filter=(&(objectClass=group)(|(cn=*cr_*)))
ldap.import.method=user
#ldap.import.method=group
ldap.export.enabled=false
ldap.password.policy.enabled=true
ntlm.auth.enabled=true
ntlm.auth.domain.controller=mumsopdc01
ntlm.auth.domain=ad.crisil.com
company.security.auth.type=screenName
company.security.auto.login=true
thumbnail
Lisa Simpson, geändert vor 14 Jahren.

RE: LDAP Import : User not getting store in database properly

Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
You have to import first name, last name, email, screen name, and one other attribute (I forget). It looks like your mapping might be doing that.