WebSphere Portal Server - How to get group attributes from LDAP

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > April 2007 > How to get group attributes from LDAP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get group attributes from LDAP
Mahmoud Matouk

2007-01-25, 7:21 am

Hi All,

I have my portal configured with LDAP, I can get user attributes but how to get group attributes, I mean for User class of PUMA service there is a getAttribute(attName) method, but there is nothing like this in Group class.

Any help please ..

2007-01-25, 7:21 am

import com.ibm.wps.puma.UserManager;
import com.ibm.wps.services.puma.PumaService;


PumaService puma = UserManager.getPumaService();
puma.findGroupByAttribute("cn", "whatever");

there are other methods also like findGroupByID, findGroupByUser etc etc. I used this code in WPS 5.1 , not sure about 6.0

cons : The PumaService exposed by UserManager is not the publicly available PumaService. So your code is coupled to WPS internal implementation

2007-04-24, 7:18 pm

> import com.ibm.wps.puma.UserManager;
> import com.ibm.wps.services.puma.PumaService;
>
>
> PumaService puma = UserManager.getPumaService();
> puma.findGroupByAttribute("cn", "whatever");
>
> there are other methods also like findGroupByID,
> findGroupByUser etc etc. I used this code in WPS 5.1
> , not sure about 6.0
>
> cons : The PumaService exposed by UserManager is not
> the publicly available PumaService. So your code is
> coupled to WPS internal implementation


Is there a better, more recommended way, to access user and group attributes in the Portal APIs?


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com