HADOOP-10626. Limit Returning Attributes for LDAP search. Contributed by Jason Hubbard.

This commit is contained in:
Aaron T. Myers 2015-01-27 13:50:45 -08:00
parent 4e15fc0841
commit 8bf6f0b703
2 changed files with 5 additions and 0 deletions

View File

@ -505,6 +505,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-4297. Enable Java assertions when running tests.
(Tsz Wo Nicholas Sze via wheat9)
HADOOP-10626. Limit Returning Attributes for LDAP search. (Jason Hubbard
via atm)
OPTIMIZATIONS
HADOOP-11323. WritableComparator#compare keeps reference to byte array.

View File

@ -341,6 +341,8 @@ public class LdapGroupsMapping
int dirSearchTimeout = conf.getInt(DIRECTORY_SEARCH_TIMEOUT, DIRECTORY_SEARCH_TIMEOUT_DEFAULT);
SEARCH_CONTROLS.setTimeLimit(dirSearchTimeout);
// Limit the attributes returned to only those required to speed up the search. See HADOOP-10626 for more details.
SEARCH_CONTROLS.setReturningAttributes(new String[] {groupNameAttr});
this.conf = conf;
}