You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xu...@apache.org on 2009/07/20 07:15:19 UTC
svn commit: r795692 -
/geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java
Author: xuhaihong
Date: Mon Jul 20 05:15:19 2009
New Revision: 795692
URL: http://svn.apache.org/viewvc?rev=795692&view=rev
Log:
GERONIMO-4754 Unnecessary attributes retrieval causes slow login in LDAPLoginModule (Patch from Jack Cai)
Modified:
geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java
Modified: geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java?rev=795692&r1=795691&r2=795692&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java (original)
+++ geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java Mon Jul 20 05:15:19 2009
@@ -348,6 +348,7 @@
} else {
constraints.setSearchScope(SearchControls.ONELEVEL_SCOPE);
}
+ constraints.setReturningAttributes(new String[] { roleName });
NamingEnumeration results =
context.search(roleBase, filter, constraints);
while (results.hasMore()) {