You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/08/16 20:35:49 UTC

svn commit: r431981 - /directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Author: akarasulu
Date: Wed Aug 16 11:35:48 2006
New Revision: 431981

URL: http://svn.apache.org/viewvc?rev=431981&view=rev
Log:
applied jorges patch for DIRSERVER-693

Modified:
    directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Modified: directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=431981&r1=431980&r2=431981&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (original)
+++ directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Wed Aug 16 11:35:48 2006
@@ -835,6 +835,19 @@
                         }
                     }
                 }
+                else
+                {
+                    for ( NamingEnumeration ii = getRootDSE().getAll(); ii.hasMore(); /**/ )
+                    {
+                      // add user attributes specifically asked for
+                        Attribute attr = ( Attribute ) ii.next();
+                        AttributeType type = attrRegistry.lookup( attr.getID() );
+                        if ( realIds.contains( type.getOid() ) )
+                        {
+                            attrs.put( attr );
+                        }
+                    }
+                }
 
                 SearchResult result = new SearchResult( "", null, attrs, false );
                 return new SingletonEnumeration( result );