Correctly test for no attributes
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 14 Feb 2011 09:53:24 +0000 (09:53 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 14 Feb 2011 09:53:24 +0000 (09:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1070420 13f79535-47bb-0310-9956-ffa450edef68

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

index 2d316d4..21ba4e9 100644 (file)
@@ -1246,7 +1246,7 @@ public class JNDIRealm extends RealmBase {
         throws NamingException {
 
         // If no attributes are requested, no need to look for them
-        if (attrIds == null || attrIds.length > 0) {
+        if (attrIds == null || attrIds.length == 0) {
             return new User(username, dn, null, null);
         }