directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499769 - /directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalObjectFactory.java
Date Thu, 25 Jan 2007 12:51:37 GMT
Author: elecharny
Date: Thu Jan 25 04:51:36 2007
New Revision: 499769

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

Modified:
    directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalObjectFactory.java

Modified: directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalObjectFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalObjectFactory.java?view=diff&rev=499769&r1=499768&r2=499769
==============================================================================
--- directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalObjectFactory.java
(original)
+++ directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalObjectFactory.java
Thu Jan 25 04:51:36 2007
@@ -31,6 +31,7 @@
 
 import org.apache.directory.server.kerberos.shared.store.KerberosAttribute;
 import org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntryModifier;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 
 
 /**
@@ -45,7 +46,7 @@
         throws Exception
     {
         if ( attrs == null || attrs.get( "objectClass" ) == null
-            || !attrs.get( "objectClass" ).contains( "krb5KDCEntry" ) )
+            || !AttributeUtils.containsValueCaseIgnore( attrs.get( "objectClass" ), "krb5KDCEntry"
) )
         {
             return null;
         }



Mime
View raw message