You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2008/06/02 16:05:02 UTC
svn commit: r662441 -
/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
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 );