directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r524869 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Date Mon, 02 Apr 2007 18:18:01 GMT
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 ) )
         {



Mime
View raw message