Author: tolusha
Date: 2011-04-27 09:56:01 -0400 (Wed, 27 Apr 2011)
New Revision: 4317
Modified:
core/branches/2.3.x/patch/2.3.9/COR-235/COR-235.patch
Log:
COR-235: patch proposed
Modified: core/branches/2.3.x/patch/2.3.9/COR-235/COR-235.patch
===================================================================
--- core/branches/2.3.x/patch/2.3.9/COR-235/COR-235.patch 2011-04-27 13:53:43 UTC (rev
4316)
+++ core/branches/2.3.x/patch/2.3.9/COR-235/COR-235.patch 2011-04-27 13:56:01 UTC (rev
4317)
@@ -33,3 +33,16 @@
protected int getSize(LdapContext ctx) throws Exception
{
if (size < 0)
+@@ -109,8 +118,12 @@
+
+ try
+ {
++ String[] returnedAtts = {ldapAttrMapping.userUsernameAttr};
++
+ SearchControls constraints = new SearchControls();
++ constraints.setReturningAttributes(returnedAtts);
+ constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
++
+ results = ctx.search(searchBase, filter, constraints);
+ size = 0;
+ while (results.hasMoreElements())