You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/04/02 20:18:01 UTC

svn commit: r524869 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java

Author: elecharny
Date: Mon Apr  2 11:18:00 2007
New Revision: 524869

URL: http://svn.apache.org/viewvc?view=rev&rev=524869
Log:
Changed the bind() operation interface

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?view=diff&rev=524869&r1=524868&r2=524869
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java Mon Apr  2 11:18:00 2007
@@ -49,6 +49,7 @@
 import org.apache.directory.server.core.DirectoryServiceConfiguration;
 import org.apache.directory.server.core.authn.AuthenticationService;
 import org.apache.directory.server.core.authn.LdapPrincipal;
+import org.apache.directory.server.core.interceptor.context.BindServiceContext;
 import org.apache.directory.server.core.partition.PartitionNexus;
 import org.apache.directory.server.core.partition.PartitionNexusProxy;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
@@ -122,10 +123,15 @@
         this.env.putAll( env );
         LdapJndiProperties props = LdapJndiProperties.getLdapJndiProperties( this.env );
         dn = props.getProviderDn();
+        
+        BindServiceContext bindContext = new BindServiceContext();
+        bindContext.setBindDn( props.getBindDn() );
+        bindContext.setCredentials( props.getCredentials() );
+        bindContext.setMechanisms( props.getAuthenticationMechanisms() );
+        bindContext.setSaslAuthId( props.getSaslAuthId() );
 
         // need to issue a bind operation here
-        this.nexusProxy.bind( props.getBindDn(), props.getCredentials(), props.getAuthenticationMechanisms(), props
-            .getSaslAuthId() );
+        this.nexusProxy.bind( bindContext ); 
 
         if ( ! nexusProxy.hasEntry( dn ) )
         {