Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mapping LDAP user data to Liferay user data Timm Wimmers March 26, 2009 6:20 AM
RE: Mapping LDAP user data to Liferay user data Samuel Kong March 26, 2009 10:40 AM
RE: Mapping LDAP user data to Liferay user data Jignesh Vachhani August 6, 2009 10:04 PM
RE: Mapping LDAP user data to Liferay user data vikas suresh thakre September 8, 2009 11:58 PM
RE: Mapping LDAP user data to Liferay user data Jignesh Vachhani September 9, 2009 1:02 AM
RE: Mapping LDAP user data to Liferay user data vikas suresh thakre September 9, 2009 6:08 AM
RE: Mapping LDAP user data to Liferay user data Jignesh Vachhani March 4, 2012 9:53 PM
RE: Mapping LDAP user data to Liferay user data Daniel Paschke November 26, 2009 5:33 AM
RE: Mapping LDAP user data to Liferay user data Jignesh Vachhani November 26, 2009 5:50 AM
RE: Mapping LDAP user data to Liferay user data Timm Wimmers February 11, 2010 7:57 AM
RE: Mapping LDAP user data to Liferay user data praveen kumar February 15, 2010 2:23 AM
RE: Mapping LDAP user data to Liferay user data vikas suresh thakre February 21, 2010 10:45 PM
RE: Mapping LDAP user data to Liferay user data Jignesh Vachhani February 21, 2010 10:55 PM
RE: Mapping LDAP user data to Liferay user data Ryan Ward February 22, 2010 2:00 PM
RE: Mapping LDAP user data to Liferay user data Chuck Wyatt January 4, 2013 6:30 AM
RE: Mapping LDAP user data to Liferay user data Marco Paul Timbi Ulloa December 29, 2010 8:49 AM
RE: Mapping LDAP user data to Liferay user data Shagul Khajamohideen December 29, 2010 10:31 AM
RE: Mapping LDAP user data to Liferay user data Marco Paul Timbi Ulloa December 29, 2010 10:26 AM
RE: Mapping LDAP user data to Liferay user data Shagul Khajamohideen December 29, 2010 10:34 AM
RE: Mapping LDAP user data to Liferay user data Marco Paul Timbi Ulloa December 29, 2010 11:29 AM
RE: Mapping LDAP user data to Liferay user data Shagul Khajamohideen December 30, 2010 6:43 AM
RE: Mapping LDAP user data to Liferay user data Fernando Cevallos December 30, 2010 6:44 AM
RE: Mapping LDAP user data to Liferay user data Fernando Cevallos December 30, 2010 6:45 AM
RE: Mapping LDAP user data to Liferay user data Mourad EF May 23, 2011 2:47 AM
RE: Mapping LDAP user data to Liferay user data paurik bhavsar May 27, 2011 3:43 AM
RE: Mapping LDAP user data to Liferay user data Mourad EF June 2, 2011 9:30 AM
RE: Mapping LDAP user data to Liferay user data Juan Gonzalez March 5, 2012 8:08 AM
RE: Mapping LDAP user data to Liferay user data Jignesh Vachhani May 4, 2012 6:37 AM
Timm Wimmers
Mapping LDAP user data to Liferay user data
March 26, 2009 6:20 AM
Answer

Timm Wimmers

Rank: New Member

Posts: 16

Join Date: March 25, 2009

Recent Posts

Hello,

we've installed Liferay successfully and bind authentification to LDAP. Now we want to fill the data for liferay users (i.e. street, city, zipcode, birthday, telephone etc.) with data from LDAP - how con that be done?

Thank you.

--
Timm
Samuel Kong
RE: Mapping LDAP user data to Liferay user data
March 26, 2009 10:40 AM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1007

Join Date: March 10, 2008

Recent Posts

Liferay currently only syncs a user's screen name, password, email, name, and job title. If you want to sync additional properties, you'll need to modify PortalLDAPUtil
Jignesh Vachhani
RE: Mapping LDAP user data to Liferay user data
August 6, 2009 10:04 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

hey samuel,

have you done this anytime?

If you have done please provide more information on that

Thanks
vikas suresh thakre
RE: Mapping LDAP user data to Liferay user data
September 8, 2009 11:58 PM
Answer

vikas suresh thakre

Rank: Junior Member

Posts: 97

Join Date: May 18, 2009

Recent Posts

Hi all,
I also have same requirment. I want to import user information other than the five field which are by default get imported.
like i want to store user's phone No, address etc from the LDAP Directory.
If anybody has done this pls provide some information about that.
any help here is appreciable.
Jignesh Vachhani
RE: Mapping LDAP user data to Liferay user data
September 9, 2009 1:02 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

Hi Vikas,

I have successfully done this task you can integrate any fields as you want.

For that you cant use Liferay setting GUI you have to make setting in your portal-ext.properties file.

You have to add fields over there and you have to map these all fields into you portalldaputil.java class.
vikas suresh thakre
RE: Mapping LDAP user data to Liferay user data
September 9, 2009 6:08 AM
Answer

vikas suresh thakre

Rank: Junior Member

Posts: 97

Join Date: May 18, 2009

Recent Posts

Hi Jignesh,
Thanks for replying
can u please tell me the Exact steps to add other user attributes in to the database like mobile number i have to insert in to the
phone table, city , street i have to enter in to the address table.
so tell me where should i write this code so that it will update these table for each user.
if u have done that pls tell me the steps to modify the code..
thanks
Jignesh Vachhani
RE: Mapping LDAP user data to Liferay user data
March 4, 2012 9:53 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

Hi Vikas,

Follow these steps:

1.Make ready your LDAP server with your fields with proper schema.
2.change portal-ext.properties ldap.user.mappings=screenName=cn\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title\nlocation=location\ndescription=description\npractice=practice\nphone=telephoneNumber\nbirthDate=birthDate\ndepartment=department\ncontactPerson=contactPersonName\nuserType=userType\ngroup=groupMembership\njoiningDate=joiningDate as per your requirement .
3.create your own service with these fields
4. call add method from your service into portalldaputil.java

and restart your server so it will automatically take fields from ldap and populate your table.
You can also refer this article
Daniel Paschke
RE: Mapping LDAP user data to Liferay user data
November 26, 2009 5:33 AM
Answer

Daniel Paschke

Rank: New Member

Posts: 11

Join Date: November 25, 2009

Recent Posts

Hello Jignesh,

can you please tell me how to create a service? and what to define there?

I got a similar problem then the one above:

I need to map usergroups from a specific ldap attribute called "employeeType" but my ldap-server does not have any groupsDN, so ldap fails to import a users employeeType-attribute to the liferay-group because there is no groupDN ...

i know that there was a similar patch in

http://issues.liferay.com/browse/LEP-3915

but this one is for liferay 4.x and im using 5.2 now.. and i just want to know if it is possible to achieve a simple group mapping (without looking into ldap-groups) without touching the liferay sources (by doin it in extension environment)

I hope i made myself clear enough
Jignesh Vachhani
RE: Mapping LDAP user data to Liferay user data
November 26, 2009 5:50 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

If you have created your own attribute then you need to define this in portal-ext.properties file and according to that you have to fetch that attribute in portalldaputil.java class.
Timm Wimmers
RE: Mapping LDAP user data to Liferay user data
February 11, 2010 7:57 AM
Answer

Timm Wimmers

Rank: New Member

Posts: 16

Join Date: March 25, 2009

Recent Posts

Hello Jignesh,

how exactly did you do that?
Can you please share the LDAP parts of your portal-ext.properties and the modifications on the java file?

I'm not a java programmer, but will give it a try if I can get a good starting point in this example.

Thank you,
Timm
praveen kumar
RE: Mapping LDAP user data to Liferay user data
February 15, 2010 2:23 AM
Answer

praveen kumar

Rank: New Member

Posts: 4

Join Date: December 29, 2009

Recent Posts

Hi Timm,

For instance if you have added an new or modified ldap properties in your ext.properties

e.g : ldap.base.provider.url=ldap://127.0.0.1:1389

modified ldap_new.base.provider.url=ldap://127.0.0.1:1389

in order to reflect these changes you should also modify/add your properties

1. In PropsKeys.java
2. In PropsValues.java

and modify PortalLDAPUtil.java by extending it in Ext environment.


Praveen.
vikas suresh thakre
RE: Mapping LDAP user data to Liferay user data
February 21, 2010 10:45 PM
Answer

vikas suresh thakre

Rank: Junior Member

Posts: 97

Join Date: May 18, 2009

Recent Posts

Hi Guys, if your are using liferay 5.2 version then there is not need to change the code for custom attribute. from control pannel you can create your own custom attribute for the user.

Thanks
Vikas Thakre.
Jignesh Vachhani
RE: Mapping LDAP user data to Liferay user data
February 21, 2010 10:55 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

Hi Timm,

I already mentioned the steps in my previous post in the same thread.
Ryan Ward
RE: Mapping LDAP user data to Liferay user data
February 22, 2010 2:00 PM
Answer

Ryan Ward

Rank: New Member

Posts: 18

Join Date: February 12, 2010

Recent Posts

Do you still need to edit the Java files in 5.2? (I assume you do) I see where I can add custom classes via the GUI.
Marco Paul Timbi Ulloa
RE: Mapping LDAP user data to Liferay user data
December 29, 2010 8:49 AM
Answer

Marco Paul Timbi Ulloa

Rank: New Member

Posts: 5

Join Date: December 13, 2010

Recent Posts

I have the version 6.0.5, try to use the custom ldap mapping, but don't work, how use the parameters??

I have the next lines in portal-ext.properties

ldap.user.custom.mappings=uid=Identificacion, where uid is my attribute in LDAP and Identificacion is the custom user field in Liferay.

But this don't work
Shagul Khajamohideen
RE: Mapping LDAP user data to Liferay user data
December 29, 2010 10:31 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Try the below. You need to change the order (customattribute=LDAPAttribute).

ldap.user.custom.mappings=Identificacion=uid

Also any changes to this property after the initial LDAP setup does not reload from properties file. To force a load, you could delete the existing LDAP setup from control panel and create a new one. This forces the settings to be read from portal-ext.properties file which then gets persisted to the database.

Since the properties file is the only out of the box way to change these settings, I think these properties (the ones that cannot be changed from control panel) should be read from the file on startup.
Marco Paul Timbi Ulloa
RE: Mapping LDAP user data to Liferay user data
December 29, 2010 10:26 AM
Answer

Marco Paul Timbi Ulloa

Rank: New Member

Posts: 5

Join Date: December 13, 2010

Recent Posts

My ldap parameter is uid and my Liferay Parameter is Identificacion, I deactive the accounts and delete the accounts, restart the service and nothing... The parameter in in portal-ext.properties or portal-developer.properties
Shagul Khajamohideen
RE: Mapping LDAP user data to Liferay user data
December 29, 2010 10:34 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Hi Marco,

Try flipping the order. Liferay custom field comes on the left.

Best,
Shagul
Marco Paul Timbi Ulloa
RE: Mapping LDAP user data to Liferay user data
December 29, 2010 11:29 AM
Answer

Marco Paul Timbi Ulloa

Rank: New Member

Posts: 5

Join Date: December 13, 2010

Recent Posts

Hello my Friend I try but nothing!!! I have the version 6.0.5.

The rest of process with ldap work excellent, but need custom fields for Additional Information.

Another solution???
Shagul Khajamohideen
RE: Mapping LDAP user data to Liferay user data
December 30, 2010 6:43 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Hi Marco,

Did you create the custom fields through the control panel for the user object? I am running LR 6.0 EE with a whole bunch of custom fields without any issues.
Fernando Cevallos
RE: Mapping LDAP user data to Liferay user data
December 30, 2010 6:44 AM
Answer

Fernando Cevallos

Rank: New Member

Posts: 2

Join Date: October 11, 2010

Recent Posts

I had the same problem!! Can some one help me??
Fernando Cevallos
RE: Mapping LDAP user data to Liferay user data
December 30, 2010 6:45 AM
Answer

Fernando Cevallos

Rank: New Member

Posts: 2

Join Date: October 11, 2010

Recent Posts

Is there a solution for LR 6.0 CE??
Mourad EF
RE: Mapping LDAP user data to Liferay user data
May 23, 2011 2:47 AM
Answer

Mourad EF

Rank: New Member

Posts: 21

Join Date: February 12, 2011

Recent Posts

Hi,
Dis you successed to map Ldap photo to LR photo ?
I'm trying to do the same (with phone number also)
thanks
paurik bhavsar
RE: Mapping LDAP user data to Liferay user data
May 27, 2011 3:43 AM
Answer

paurik bhavsar

Rank: New Member

Posts: 21

Join Date: April 22, 2011

Recent Posts

try this in your jsp
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:10389");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "uid=admin,ou=system");
env.put(Context.SECURITY_CREDENTIALS, "secret");
env.put("java.naming.ldap.typesOnly", "true");
DirContext ctx = null;
NamingEnumeration results = null;
// Indicate that we only want the type names


try {

// Create initial context
ctx = new InitialDirContext(env);
// Get the attributes
Attributes attrs = ctx.getAttributes("cn=test,ou=system");
Attribute attr1 = attrs.get("telephoneNumber");

// Print the answer
System.out.println(attrs);
// Close the context when we're done
ctx.close();
} catch (NamingException e) {
e.printStackTrace();
}
Mourad EF
RE: Mapping LDAP user data to Liferay user data
June 2, 2011 9:30 AM
Answer

Mourad EF

Rank: New Member

Posts: 21

Join Date: February 12, 2011

Recent Posts

thank you for your reply .

I've done this using EXT environment, by modifying (extending) PortalLDAPImporterImpl.java
thanks to this post:
import phones from ldap

It works well for organization and telephoneNumber ... if you want more information tell me

Photos are not supported by LDAP (as far as i know), so I think i'm going to use your method to import photos from a directory in the server or something like that ... thanks

Mourad
Juan Gonzalez
RE: Mapping LDAP user data to Liferay user data
March 5, 2012 8:08 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2068

Join Date: October 28, 2008

Recent Posts

Mourad EF:
Hi,
Dis you successed to map Ldap photo to LR photo ?
I'm trying to do the same (with phone number also)
thanks


In Liferay 6.1 now you can map LDAP portrait with user portrait. Just use "portrait" in portal-ext.properties (LDAP user mappings section).
Jignesh Vachhani
RE: Mapping LDAP user data to Liferay user data
May 4, 2012 6:37 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

Yes right juan
Now in LR 6.1 its very easy to configure
Chuck Wyatt
RE: Mapping LDAP user data to Liferay user data
January 4, 2013 6:30 AM
Answer

Chuck Wyatt

Rank: New Member

Posts: 10

Join Date: October 17, 2011

Recent Posts

Hi Daniel,

I'm wondering if you eventually had success with this? We're in Liferay 6.1.1 CE GA2. We have LDAP user attributes that we'd like to use as an indication of in what Liferay group a user has membership. This sounds similar to the issue you had? Like you I found this old patch for 4.x but that doesn't apply now and wondering the best way to map groups membership based on the values of LDAP user attributes.

Thanks,

Chuck