directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r538686 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
Date Wed, 16 May 2007 19:02:25 GMT
Author: elecharny
Date: Wed May 16 12:02:22 2007
New Revision: 538686

URL: http://svn.apache.org/viewvc?view=rev&rev=538686
Log:
Now using ServerLdapContext instead of InitialLdapContext, to avoid a lookup( "" ) for each
request

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java?view=diff&rev=538686&r1=538685&r2=538686
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
Wed May 16 12:02:22 2007
@@ -28,8 +28,10 @@
 import javax.naming.ldap.LdapContext;
 import javax.naming.spi.InitialContextFactory;
 
+import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.configuration.StartupConfiguration;
 import org.apache.directory.server.core.jndi.PropertyKeys;
+import org.apache.directory.server.core.jndi.ServerLdapContext;
 import org.apache.directory.server.ldap.SessionRegistry;
 import org.apache.directory.shared.ldap.exception.LdapException;
 import org.apache.directory.shared.ldap.message.BindRequest;
@@ -115,8 +117,7 @@
             }
             else
             {
-                Control[] connCtls = ( Control[] ) req.getControls().values().toArray( EMPTY
);
-                ctx = new InitialLdapContext( env, connCtls );
+                ctx = new ServerLdapContext( DirectoryService.getInstance(), env );
             }
         }
         catch ( NamingException e )



Mime
View raw message