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 2007/03/12 07:35:22 UTC

svn commit: r517113 - /directory/apacheds/branches/apacheds-sasl-branch/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Author: akarasulu
Date: Sun Mar 11 23:35:21 2007
New Revision: 517113

URL: http://svn.apache.org/viewvc?view=rev&rev=517113
Log:
adding values for supportedSASLMechanisms to rootDSE

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

Modified: directory/apacheds/branches/apacheds-sasl-branch/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-sasl-branch/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?view=diff&rev=517113&r1=517112&r2=517113
==============================================================================
--- directory/apacheds/branches/apacheds-sasl-branch/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (original)
+++ directory/apacheds/branches/apacheds-sasl-branch/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Sun Mar 11 23:35:21 2007
@@ -85,6 +85,13 @@
  */
 public class DefaultPartitionNexus extends PartitionNexus
 {
+    // SASL mechanism support constants
+    // TODO perhaps these belong in constants module
+    private static final String SUPPORTED_SASL_MECHANISMS_ATTR = "supportedSASLMechanisms";
+    private static final String SASL_MECH_CRAM_MD5 = "CRAM-MD5";
+    private static final String SASL_MECH_DIGEST_MD5 = "DIGEST-MD5";
+    private static final String SASL_MECH_GSSAPI = "GSSAPI";
+    
     private static final Logger log = LoggerFactory.getLogger( DefaultPartitionNexus.class );
 
     /** Speedup for logs */
@@ -147,6 +154,13 @@
         attr = new AttributeImpl( "supportedExtension" );
         rootDSE.put( attr );
         attr.add( NoticeOfDisconnect.EXTENSION_OID );
+
+        // Add the supportedSASLMechanisms attribute to rootDSE
+        attr = new AttributeImpl( SUPPORTED_SASL_MECHANISMS_ATTR );
+        rootDSE.put( attr );
+        attr.add( SASL_MECH_GSSAPI );
+        attr.add( SASL_MECH_DIGEST_MD5 );
+        attr.add( SASL_MECH_CRAM_MD5 );
 
         attr = new AttributeImpl( "supportedControl" );
         rootDSE.put( attr );