directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499765 - /directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/store/Krb5KdcEntryFilter.java
Date Thu, 25 Jan 2007 12:49:52 GMT
Author: elecharny
Date: Thu Jan 25 04:49:51 2007
New Revision: 499765

URL: http://svn.apache.org/viewvc?view=rev&rev=499765
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/store/Krb5KdcEntryFilter.java

Modified: directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/store/Krb5KdcEntryFilter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/store/Krb5KdcEntryFilter.java?view=diff&rev=499765&r1=499764&r2=499765
==============================================================================
--- directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/store/Krb5KdcEntryFilter.java
(original)
+++ directory/apacheds/branches/1.0/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/store/Krb5KdcEntryFilter.java
Thu Jan 25 04:49:51 2007
@@ -28,6 +28,7 @@
 import javax.security.auth.kerberos.KerberosKey;
 import javax.security.auth.kerberos.KerberosPrincipal;
 
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -55,7 +56,7 @@
      */
     public boolean filter( File file, String dn, Attributes entry, DirContext ctx ) throws
NamingException
     {
-        if ( entry.get( OBJECTCLASS_ATTR ).contains( KRB5KDCENTRY_OC ) )
+        if ( AttributeUtils.containsValueCaseIgnore( entry.get( OBJECTCLASS_ATTR ), KRB5KDCENTRY_OC
) )
         {
             String krbPrincipal = null;
             try



Mime
View raw message