You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2011/06/21 15:20:58 UTC
svn commit: r1137994 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Author: kayyagari
Date: Tue Jun 21 13:20:57 2011
New Revision: 1137994
URL: http://svn.apache.org/viewvc?rev=1137994&view=rev
Log:
o add the available controls to the RootDSE dynamically (DIRSERVER-1626)
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=1137994&r1=1137993&r2=1137994&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Tue Jun 21 13:20:57 2011
@@ -173,20 +173,6 @@ public class DefaultPartitionNexus exten
rootDSE.put( SchemaConstants.SUPPORTED_FEATURES_AT, SchemaConstants.FEATURE_ALL_OPERATIONAL_ATTRIBUTES );
rootDSE.put( SchemaConstants.SUPPORTED_EXTENSION_AT, NoticeOfDisconnect.EXTENSION_OID );
- // Add the supported controls
- rootDSE.put( SchemaConstants.SUPPORTED_CONTROL_AT,
- PersistentSearch.OID,
- EntryChange.OID,
- Subentries.OID,
- ManageDsaIT.OID,
- Cascade.OID,
- PagedResults.OID,
- // Replication controls
- SyncDoneValue.OID,
- SyncInfoValue.OID,
- SyncRequestValue.OID,
- SyncStateValue.OID );
-
// Add the objectClasses
rootDSE.put( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.TOP_OC, SchemaConstants.EXTENSIBLE_OBJECT_OC );
@@ -222,7 +208,13 @@ public class DefaultPartitionNexus exten
return;
}
- //this.directoryService = directoryService;
+ // Add the supported controls
+ Iterator<String> ctrlOidItr = directoryService.getLdapCodecService().registeredControls();
+ while ( ctrlOidItr.hasNext() )
+ {
+ rootDSE.add( SchemaConstants.SUPPORTED_CONTROL_AT, ctrlOidItr.next() );
+ }
+
schemaManager = directoryService.getSchemaManager();
ENTRY_CSN_AT = schemaManager.getAttributeType( SchemaConstants.ENTRY_CSN_AT );
OBJECT_CLASS_AT = schemaManager.getAttributeType( SchemaConstants.OBJECT_CLASS_AT );