Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 164125

Summary: [api] Need to extend the LDAPPerson class to lookup a user's groups
Product: Community Reporter: Denis Roy <denis.roy>
Component: CommitterToolsAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: phoenix.ui-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Denis Roy CLA 2006-11-10 10:26:58 EST
There is currently no easy way to query LDAP for the following:

- given a user id, get the list of groups they're in
- given a iser id and a group, return a boolean if a user is in the group

I propose two new methods for LDAPPerson:

$array = getUserGroups(userid)
$boolean = isUserInGroup(userid, group)

This would allow us to restrict some Committer Tools pages to specific UNIX groups.
Comment 1 Denis Roy CLA 2008-08-18 09:56:23 EDT
As we're phasing out Committer Tools, this is no longer needed.