Author: elecharny Date: Mon Apr 2 11:30:24 2007 New Revision: 524880 URL: http://svn.apache.org/viewvc?view=rev&rev=524880 Log: Changed the bind() operation interface Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java?view=diff&rev=524880&r1=524879&r2=524880 ============================================================================== --- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java (original) +++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Mon Apr 2 11:30:24 2007 @@ -30,6 +30,7 @@ import org.apache.directory.server.core.DirectoryServiceConfiguration; import org.apache.directory.server.core.configuration.PartitionConfiguration; +import org.apache.directory.server.core.interceptor.context.ServiceContext; import org.apache.directory.server.core.partition.Partition; import org.apache.directory.server.core.partition.impl.btree.BTreePartition; import org.apache.directory.server.core.partition.impl.btree.BTreePartitionConfiguration; @@ -402,6 +403,15 @@ public final void bind( LdapDN bindDn, byte[] credentials, List mechanisms, String saslAuthId ) throws NamingException + { + // does nothing + throw new LdapAuthenticationNotSupportedException( + "Bind requests only tunnel down into partitions if there are no authenticators to handle the mechanism.\n" + + "Check to see if you have correctly configured authenticators for the server.", + ResultCodeEnum.AUTH_METHOD_NOT_SUPPORTED ); + } + + public final void bind( ServiceContext bindContext ) throws NamingException { // does nothing throw new LdapAuthenticationNotSupportedException(