Foren
LDAP Phone Number and Address Import
Sarah L Farley, geändert vor 11 Jahren.
LDAP Phone Number and Address Import
Junior Member Beiträge: 37 Beitrittsdatum: 06.05.09 Neueste Beiträge
HI,
I am wondering if it's possible and if anyone has an example of importing values from LDAP for user's phone number as well as address?
I assume you need to use com.liferay.portal.model.ContactModel, however I can't find example. If type for both are required, is this something I need to set manually on import?
Thanks in advance.
I am wondering if it's possible and if anyone has an example of importing values from LDAP for user's phone number as well as address?
I assume you need to use com.liferay.portal.model.ContactModel, however I can't find example. If type for both are required, is this something I need to set manually on import?
Thanks in advance.
Jignesh Vachhani, geändert vor 11 Jahren.
RE: LDAP Phone Number and Address Import
Liferay Master Beiträge: 803 Beitrittsdatum: 10.03.08 Neueste Beiträge
Hi Sarah,
You can refer This blog link.
If still you confused , you can put your query here to make it rsolve.
You can refer This blog link.
If still you confused , you can put your query here to make it rsolve.
Sarah L Farley, geändert vor 11 Jahren.
RE: LDAP Phone Number and Address Import
Junior Member Beiträge: 37 Beitrittsdatum: 06.05.09 Neueste Beiträge
HI,
I tried your suggestion and it's still now working. I would like to use the phone number and address fields already in place.
This is what I have in my portal-ext.properties file.
I tried your suggestion and it's still now working. I would like to use the phone number and address fields already in place.
This is what I have in my portal-ext.properties file.
ldap.auth.enabled=true
ldap.auth.required=true
ldap.import.group.cache.enabled=false
#
# Set the values used to connect to a LDAP store.
#
# The list of properties must end with a subsequent integer (0, 1, etc.) and
# it is assumed that the list has reached an end when the pattern or
# replacement is not set.
#
###replace with our connection information###
ldap.base.provider.url.0=ldap://localhost:10389
ldap.base.dn.0=dc=example,dc=com
ldap.security.principal.0=uid=admin,ou=system
ldap.security.credentials.0=secret
#
# When importing and exporting users, the portal will use this mapping to
# connect LDAP user attributes and portal user attributes.
#
# See com.liferay.portal.model.UserModel for a list of attributes.
#
ldap.user.mappings.0=screenName=sAMAccountName\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title\ngroup=memberOf\nmiddleName=initials\nphone=telephoneNumber\nstreet1=streetAddress\ncity=l
#
# Set this to true to use the LDAP's password policy instead of the portal
# password policy.
#
#ldap.password.policy.enabled=true
#
# Active Directory stores information about the user account as a series of
# bit fields in the UserAccountControl attribute.
#
# If you want to prevent disabled accounts from logging into the portal you
# need to use a search filter similiar to the following:
# (&(objectclass=person)(userprincipalname=@email_address@)(!(UserAccountControl:1.2.840.013556.0.4.803:=2)))
#
# See the following links:
# http://support.microsoft.com/kb/305144/
# http://support.microsoft.com/?kbid=269181
#
ldap.auth.search.filter.0=(&(objectCategory=person)(sAMAccountName= (screen_name)))
#
# Settings for importing users and groups from LDAP to the portal. These
# setttings are not used unless the property "ldap.import.enabled" is set
# to true.
#
ldap.import.user.search.filter.0=(|(memberOf=CN=Staff,OU=Security Groups,DC=ern,DC=nps,DC=edu)(memberOf=CN=Students,OU=Security Groups,DC=ern,DC=nps,DC=edu)(memberOf=CN=Faculty,OU=Security Groups,DC=ern,DC=nps,DC=edu))
ldap.import.group.search.filter.0=(|(cn=Staff)(cn=Faculty)(cn=Students))
ldap.group.mappings.0=groupName=cn\ndescription=description\nuser=member
ldap.user.custom.mappings.0=
ldap.contact.mappings.0=phone=telephoneNumber
ldap.contact.custom.mappings.0=office=telephoneNumber
Kaleem Mohammed, geändert vor 11 Jahren.
RE: LDAP Phone Number and Address Import
New Member Beiträge: 7 Beitrittsdatum: 04.04.12 Neueste BeiträgeSarah L Farley:
HI,
I tried your suggestion and it's still now working. I would like to use the phone number and address fields already in place.
This is what I have in my portal-ext.properties file.ldap.auth.enabled=true ldap.auth.required=true ldap.import.group.cache.enabled=false # # Set the values used to connect to a LDAP store. # # The list of properties must end with a subsequent integer (0, 1, etc.) and # it is assumed that the list has reached an end when the pattern or # replacement is not set. # ###replace with our connection information### ldap.base.provider.url.0=ldap://localhost:10389 ldap.base.dn.0=dc=example,dc=com ldap.security.principal.0=uid=admin,ou=system ldap.security.credentials.0=secret # # When importing and exporting users, the portal will use this mapping to # connect LDAP user attributes and portal user attributes. # # See com.liferay.portal.model.UserModel for a list of attributes. # ldap.user.mappings.0=screenName=sAMAccountName\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title\ngroup=memberOf\nmiddleName=initials\nphone=telephoneNumber\nstreet1=streetAddress\ncity=l # # Set this to true to use the LDAP's password policy instead of the portal # password policy. # #ldap.password.policy.enabled=true # # Active Directory stores information about the user account as a series of # bit fields in the UserAccountControl attribute. # # If you want to prevent disabled accounts from logging into the portal you # need to use a search filter similiar to the following: # (&(objectclass=person)(userprincipalname=@email_address@)(!(UserAccountControl:1.2.840.013556.0.4.803:=2))) # # See the following links: # http://support.microsoft.com/kb/305144/ # http://support.microsoft.com/?kbid=269181 # ldap.auth.search.filter.0=(&(objectCategory=person)(sAMAccountName= (screen_name))) # # Settings for importing users and groups from LDAP to the portal. These # setttings are not used unless the property "ldap.import.enabled" is set # to true. # ldap.import.user.search.filter.0=(|(memberOf=CN=Staff,OU=Security Groups,DC=ern,DC=nps,DC=edu)(memberOf=CN=Students,OU=Security Groups,DC=ern,DC=nps,DC=edu)(memberOf=CN=Faculty,OU=Security Groups,DC=ern,DC=nps,DC=edu)) ldap.import.group.search.filter.0=(|(cn=Staff)(cn=Faculty)(cn=Students)) ldap.group.mappings.0=groupName=cn\ndescription=description\nuser=member ldap.user.custom.mappings.0= ldap.contact.mappings.0=phone=telephoneNumber ldap.contact.custom.mappings.0=office=telephoneNumber
Hi Sara,
Did you managed to get the solution to the above stated problem?
I am also looking to import phone and address from LDAP to liferay (existing phone n address fields ).
For your information, I am using Liferay 6.1 CE edition.
I managed to map all the basice fields like firstName, lastName, email, screenName, jobtitle.
Now, I want to import (map ) LDAP phone n address attributes to Liferay (phone n address).
Any help or pointers are highly appreciated.
Regards
Kaleem
Kaleem Mohammed, geändert vor 11 Jahren.
RE: LDAP Phone Number and Address Import
New Member Beiträge: 7 Beitrittsdatum: 04.04.12 Neueste BeiträgeJignesh Vachhani:
Hi Sarah,
You can refer This blog link.
If still you confused , you can put your query here to make it rsolve.
Hi Jignesh,
I am also looking to import phone and address from LDAP to liferay (existing phone n address fields ).
For your information, I am using Liferay 6.1 CE edition.
I managed to map all the basice fields like firstName, lastName, email, screenName, jobtitle.
Now, I want to import (map ) LDAP phone n address attributes to Liferay (phone n address).
Any help or pointers are highly appreciated.
Is it possible to override com.liferay.portal.security.ldap.PortalLDAPImporterImpl using HOOKS in Liferay 6.1. ?
Or we need to go with EXT ?
Regards
Kaleem
Aston Pearl, geändert vor 10 Jahren.
RE: LDAP Phone Number and Address Import
Junior Member Beiträge: 62 Beitrittsdatum: 04.02.13 Neueste Beiträge
Hi, did u succeed to import telephoneNumber & address from LDAP to Liferay which actually displayed under user's profile.
Need the same thing here.
thnx in advance....
Need the same thing here.
thnx in advance....