directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499767 - /directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java
Date Thu, 25 Jan 2007 12:50:30 GMT
Author: elecharny
Date: Thu Jan 25 04:50:29 2007
New Revision: 499767

URL: http://svn.apache.org/viewvc?view=rev&rev=499767
Log:
Used AttributeUtils.containsValueCaseIgnore( attr, value) instead of
attr.cxontains( value )

Modified:
    directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java

Modified: directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java?view=diff&rev=499767&r1=499766&r2=499767
==============================================================================
--- directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java
(original)
+++ directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java
Thu Jan 25 04:50:29 2007
@@ -64,6 +64,7 @@
 import org.apache.directory.shared.ldap.ldif.LdifReader;
 import org.apache.directory.shared.ldap.message.LockableAttributeImpl;
 import org.apache.directory.shared.ldap.message.LockableAttributesImpl;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -310,7 +311,7 @@
                 String dn = entry.getDn();
                 Attributes attributes = entry.getAttributes();
 
-                if ( attributes.get( "objectClass" ).contains( "krb5KDCEntry" ) )
+                if ( AttributeUtils.containsValueCaseIgnore( attributes.get( "objectClass"
), "krb5KDCEntry" ) )
                 {
                     String pw = ( String ) attributes.get( "userpassword" ).get();
                     String krbPrincipal = ( String ) attributes.get( KerberosAttribute.PRINCIPAL
).get();



Mime
View raw message