Revert r904914. https://issues.apache.org/bugzilla/show_bug.cgi?id=48629
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 16 Feb 2010 21:15:21 +0000 (21:15 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 16 Feb 2010 21:15:21 +0000 (21:15 +0000)
 now proposes a better solution

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@910695 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/realm/JNDIRealm.java

index 3070ba2..be79acb 100644 (file)
@@ -1687,7 +1687,7 @@ public class JNDIRealm extends RealmBase {
                 Set<String> newThisRound = new HashSet<String>(); // Stores the groups we find in this iteration
 
                 for (String groupDN : newGroupDNs) {
-                    filter = roleFormat.format(new String[] { groupDN, groupDN });
+                    filter = roleFormat.format(new String[] { groupDN });
 
                     if (containerLog.isTraceEnabled()) {
                         containerLog.trace("Perform a nested group search with base "+ roleBase + " and filter " + filter);