directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r662441 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
Date Mon, 02 Jun 2008 14:05:02 GMT
Author: akarasulu
Date: Mon Jun  2 07:05:02 2008
New Revision: 662441

URL: http://svn.apache.org/viewvc?rev=662441&view=rev
Log:
forgot to check this in

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java?rev=662441&r1=662440&r2=662441&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
Mon Jun  2 07:05:02 2008
@@ -20,9 +20,11 @@
 package org.apache.directory.server;
 
 
+import org.apache.directory.server.core.CoreSession;
 import org.apache.directory.server.core.entry.DefaultServerEntry;
 import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.interceptor.Interceptor;
+import org.apache.directory.server.core.jndi.ServerLdapContext;
 import org.apache.directory.server.core.kerberos.KeyDerivationInterceptor;
 import org.apache.directory.server.core.partition.Partition;
 import org.apache.directory.server.xdbm.Index;
@@ -106,7 +108,8 @@
             schemaRoot.modifyAttributes( "cn=Krb5kdc", mods );
         }
 
-        ctx =   directoryService.getJndiContext( "dc=example,dc=com" );
+        CoreSession session = directoryService.getSession();
+        ctx = new ServerLdapContext( directoryService, session, new LdapDN( "dc=example,dc=com"
) );
 
         attrs = getOrgUnitAttributes( "users" );
         DirContext users = ctx.createSubcontext( "ou=users", attrs );



Mime
View raw message