You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/01/25 13:50:30 UTC
svn commit: r499767 -
/directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractBackingStoreTest.java
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();