geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r795692 - /geronimo/server/trunk/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java
Date Mon, 20 Jul 2009 05:15:19 GMT
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()) {



Mime
View raw message