directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1448146 - /directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/kerberos/StoreUtils.java
Date Wed, 20 Feb 2013 13:08:58 GMT
Author: elecharny
Date: Wed Feb 20 13:08:58 2013
New Revision: 1448146

URL: http://svn.apache.org/r1448146
Log:
Small improvement : we pass the AttributeType in the filter, as we have it.

Modified:
    directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/kerberos/StoreUtils.java

Modified: directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/kerberos/StoreUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/kerberos/StoreUtils.java?rev=1448146&r1=1448145&r2=1448146&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/kerberos/StoreUtils.java
(original)
+++ directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/kerberos/StoreUtils.java
Wed Feb 20 13:08:58 2013
@@ -112,7 +112,8 @@ public class StoreUtils
     {
         AttributeType type = schemaManager.lookupAttributeTypeRegistry( KerberosAttribute.KRB5_PRINCIPAL_NAME_AT
);
         Value<String> value = new StringValue( type, principal );
-        return new EqualityNode<String>( KerberosAttribute.KRB5_PRINCIPAL_NAME_AT,
value );
+
+        return new EqualityNode<String>( type, value );
     }
 
 
@@ -134,9 +135,10 @@ public class StoreUtils
         {
             SchemaManager schemaManager = session.getDirectoryService().getSchemaManager();
             cursor = session.search( searchBaseDn, SearchScope.SUBTREE,
-                getFilter( schemaManager, principal ), AliasDerefMode.DEREF_ALWAYS, null
);
+                getFilter( schemaManager, principal ), AliasDerefMode.DEREF_ALWAYS, "*" );
 
             cursor.beforeFirst();
+
             if ( cursor.next() )
             {
                 Entry entry = cursor.get();



Mime
View raw message