Updated ldap tests to apache directory 1.0.0 release version.

This commit is contained in:
Luke Taylor 2007-02-04 20:06:36 +00:00
parent e169e63e1b
commit 1686fd0bd2
3 changed files with 7 additions and 8 deletions

View File

@ -99,7 +99,7 @@
<dependency> <dependency>
<groupId>org.apache.directory.server</groupId> <groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-core</artifactId> <artifactId>apacheds-core</artifactId>
<version>1.0-RC3</version> <version>1.0.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -24,7 +24,6 @@ import java.util.Hashtable;
/** /**
* *
DOCUMENT ME!
* *
* @author Luke Taylor * @author Luke Taylor
* @version $Id$ * @version $Id$

View File

@ -16,10 +16,10 @@
package org.acegisecurity.ldap; package org.acegisecurity.ldap;
import org.apache.directory.server.core.configuration.Configuration; import org.apache.directory.server.core.configuration.Configuration;
import org.apache.directory.server.core.configuration.MutableDirectoryPartitionConfiguration; import org.apache.directory.server.core.configuration.MutablePartitionConfiguration;
import org.apache.directory.server.core.configuration.MutableStartupConfiguration; import org.apache.directory.server.core.configuration.MutableStartupConfiguration;
import org.apache.directory.server.core.jndi.CoreContextFactory; import org.apache.directory.server.core.jndi.CoreContextFactory;
import org.apache.directory.server.core.partition.DirectoryPartitionNexus; import org.apache.directory.server.core.partition.DefaultPartitionNexus;
import java.io.File; import java.io.File;
@ -162,7 +162,7 @@ public class LdapTestServer {
private void initConfiguration() throws NamingException { private void initConfiguration() throws NamingException {
// Create the partition for the acegi tests // Create the partition for the acegi tests
MutableDirectoryPartitionConfiguration acegiDit = new MutableDirectoryPartitionConfiguration(); MutablePartitionConfiguration acegiDit = new MutablePartitionConfiguration();
acegiDit.setName("acegisecurity"); acegiDit.setName("acegisecurity");
acegiDit.setSuffix("dc=acegisecurity,dc=org"); acegiDit.setSuffix("dc=acegisecurity,dc=org");
@ -217,8 +217,8 @@ public class LdapTestServer {
env.setProperty(Context.PROVIDER_URL, "dc=acegisecurity,dc=org"); env.setProperty(Context.PROVIDER_URL, "dc=acegisecurity,dc=org");
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class.getName()); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class.getName());
env.setProperty(Context.SECURITY_AUTHENTICATION, "simple"); env.setProperty(Context.SECURITY_AUTHENTICATION, "simple");
env.setProperty(Context.SECURITY_PRINCIPAL, DirectoryPartitionNexus.ADMIN_PRINCIPAL); env.setProperty(Context.SECURITY_PRINCIPAL, DefaultPartitionNexus.ADMIN_PRINCIPAL);
env.setProperty(Context.SECURITY_CREDENTIALS, DirectoryPartitionNexus.ADMIN_PASSWORD); env.setProperty(Context.SECURITY_CREDENTIALS, DefaultPartitionNexus.ADMIN_PASSWORD);
try { try {
initConfiguration(); initConfiguration();