HADOOP-10626. Limit Returning Attributes for LDAP search. Contributed by Jason Hubbard.
(cherry picked from commit 8709751e1ee9a2c5553823dcd715bd077052ad7f)
This commit is contained in:
parent
8100c8a68c
commit
3c8d3816c6
|
@ -144,6 +144,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HADOOP-4297. Enable Java assertions when running tests.
|
HADOOP-4297. Enable Java assertions when running tests.
|
||||||
(Tsz Wo Nicholas Sze via wheat9)
|
(Tsz Wo Nicholas Sze via wheat9)
|
||||||
|
|
||||||
|
HADOOP-10626. Limit Returning Attributes for LDAP search. (Jason Hubbard
|
||||||
|
via atm)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11323. WritableComparator#compare keeps reference to byte array.
|
HADOOP-11323. WritableComparator#compare keeps reference to byte array.
|
||||||
|
|
|
@ -341,6 +341,8 @@ public class LdapGroupsMapping
|
||||||
|
|
||||||
int dirSearchTimeout = conf.getInt(DIRECTORY_SEARCH_TIMEOUT, DIRECTORY_SEARCH_TIMEOUT_DEFAULT);
|
int dirSearchTimeout = conf.getInt(DIRECTORY_SEARCH_TIMEOUT, DIRECTORY_SEARCH_TIMEOUT_DEFAULT);
|
||||||
SEARCH_CONTROLS.setTimeLimit(dirSearchTimeout);
|
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;
|
this.conf = conf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue