Bug 1086795 - [GSS] (6.2.x) LdapExt login module fetches to many attributes in RoleSearch
Summary: [GSS] (6.2.x) LdapExt login module fetches to many attributes in RoleSearch
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Security
Version: 6.1.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: CR1
: EAP 6.2.4
Assignee: baranowb
QA Contact: Josef Cacek
Russell Dickenson
URL:
Whiteboard:
Depends On: 1086787
Blocks: eap62-cp04-blockers 1089068 1104984 1104987
TreeView+ depends on / blocked
 
Reported: 2014-04-11 13:47 UTC by Tom Fonteyne
Modified: 2014-08-07 12:12 UTC (History)
7 users (show)

Fixed In Version:
Clone Of: 1086787
: 1089068 (view as bug list)
Environment:
Last Closed: 2014-08-07 12:12:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SECURITY-819 0 Major Open LdapExt login module fetches to many attributes in RoleSearch 2016-04-07 04:08:22 UTC

Description Tom Fonteyne 2014-04-11 13:47:57 UTC
+++ This bug was initially created as a clone of Bug #1086787 +++

This BZ is meant for EAP 6.2.x next possible CP


An LDAP server with (lets say) 1000 users in a group.
When authentication, a query is done to retrieve the groups for the user.

Most LDAP servers will limit the attributes send back based on authorization of the user, but can be configured to return all information.

The cause is:

/ Query for roles matching the role filter
SearchControls constraints = new SearchControls();
constraints.setSearchScope(searchScope);
constraints.setTimeLimit(searchTimeLimit);
rolesSearch(ctx, constraints, username, userDN, recursion, 0);

this used to also have:
constraints.setReturningAttributes(new String[0]);
at some time this was taken out.

It needs to go back in

According to the schedule it is to late for 6.3 as it would require a component update. Scheduling this for 6.4 when the flag becomes available. Will then also clone to get it into a 6.3 CP

Comment 5 Jimmy Wilson 2014-06-09 18:07:45 UTC
Setting status to POST to reflect component upgrade bug 1104984.

Comment 6 Hynek Mlnarik 2014-06-19 15:22:51 UTC
Verified for 6.2.4.CP.CR1


Note You need to log in before you can comment on or make changes to this bug.