From 490b7f6ba45e41b9d28429fd1143a08915a136e8 Mon Sep 17 00:00:00 2001 From: gil Date: Wed, 19 Oct 2016 11:29:31 +0200 Subject: [PATCH] KEYCLOAK-3519 port to apache-ldap-api-1.0.0-M33 --- pom.xml | 5 +++-- testsuite/integration-arquillian/tests/base/pom.xml | 7 +++++++ testsuite/integration/pom.xml | 6 ++++++ .../keycloak/util/ldap/FileDirectoryServiceFactory.java | 8 ++++---- .../util/ldap/InMemoryDirectoryServiceFactory.java | 6 +++--- .../org/keycloak/util/ldap/InMemorySchemaPartition.java | 4 ++-- 6 files changed, 25 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index d6e110f7f4..2b32fdaf92 100755 --- a/pom.xml +++ b/pom.xml @@ -83,8 +83,9 @@ 6.0.6.Final - 2.0.0-M17 - 1.0.0-M23 + 2.0.0-M21 + 1.0.0-M33 + 2.0.0-M3 3.2.1 2.3.23 9.1.0.v20131115 diff --git a/testsuite/integration-arquillian/tests/base/pom.xml b/testsuite/integration-arquillian/tests/base/pom.xml index 10a0f74d6c..0cd9647e72 100644 --- a/testsuite/integration-arquillian/tests/base/pom.xml +++ b/testsuite/integration-arquillian/tests/base/pom.xml @@ -78,6 +78,13 @@ greenmail compile + + + org.apache.directory.jdbm + apacheds-jdbm1 + ${apacheds.jdbm.version} + test + diff --git a/testsuite/integration/pom.xml b/testsuite/integration/pom.xml index f67fc35a93..314f258126 100755 --- a/testsuite/integration/pom.xml +++ b/testsuite/integration/pom.xml @@ -277,6 +277,12 @@ ${mariadb.version} + + org.apache.directory.jdbm + apacheds-jdbm1 + ${apacheds.jdbm.version} + test + diff --git a/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/FileDirectoryServiceFactory.java b/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/FileDirectoryServiceFactory.java index 966ac44d39..37f975432c 100644 --- a/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/FileDirectoryServiceFactory.java +++ b/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/FileDirectoryServiceFactory.java @@ -23,10 +23,10 @@ import org.apache.directory.api.ldap.model.schema.SchemaManager; import org.apache.directory.api.ldap.model.schema.comparators.NormalizingComparator; import org.apache.directory.api.ldap.model.schema.registries.ComparatorRegistry; import org.apache.directory.api.ldap.model.schema.registries.SchemaLoader; -import org.apache.directory.api.ldap.schemaextractor.SchemaLdifExtractor; -import org.apache.directory.api.ldap.schemaextractor.impl.DefaultSchemaLdifExtractor; -import org.apache.directory.api.ldap.schemaloader.LdifSchemaLoader; -import org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager; +import org.apache.directory.api.ldap.schema.extractor.SchemaLdifExtractor; +import org.apache.directory.api.ldap.schema.extractor.impl.DefaultSchemaLdifExtractor; +import org.apache.directory.api.ldap.schema.loader.LdifSchemaLoader; +import org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager; import org.apache.directory.api.util.exception.Exceptions; import org.apache.directory.server.constants.ServerDNConstants; import org.apache.directory.server.core.DefaultDirectoryService; diff --git a/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemoryDirectoryServiceFactory.java b/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemoryDirectoryServiceFactory.java index bc296cdff8..35fb1b8641 100644 --- a/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemoryDirectoryServiceFactory.java +++ b/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemoryDirectoryServiceFactory.java @@ -27,8 +27,8 @@ import org.apache.directory.api.ldap.model.schema.SchemaManager; import org.apache.directory.api.ldap.model.schema.comparators.NormalizingComparator; import org.apache.directory.api.ldap.model.schema.registries.ComparatorRegistry; import org.apache.directory.api.ldap.model.schema.registries.SchemaLoader; -import org.apache.directory.api.ldap.schemaloader.JarLdifSchemaLoader; -import org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager; +import org.apache.directory.api.ldap.schema.loader.JarLdifSchemaLoader; +import org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager; import org.apache.directory.api.util.exception.Exceptions; import org.apache.directory.server.constants.ServerDNConstants; import org.apache.directory.server.core.DefaultDirectoryService; @@ -159,4 +159,4 @@ class InMemoryDirectoryServiceFactory implements DirectoryServiceFactory { public PartitionFactory getPartitionFactory() throws Exception { return partitionFactory; } -} \ No newline at end of file +} diff --git a/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemorySchemaPartition.java b/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemorySchemaPartition.java index f111d7013e..320511bbf7 100644 --- a/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemorySchemaPartition.java +++ b/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/InMemorySchemaPartition.java @@ -23,8 +23,8 @@ import org.apache.directory.api.ldap.model.entry.Entry; import org.apache.directory.api.ldap.model.ldif.LdifEntry; import org.apache.directory.api.ldap.model.ldif.LdifReader; import org.apache.directory.api.ldap.model.schema.SchemaManager; -import org.apache.directory.api.ldap.schemaextractor.impl.DefaultSchemaLdifExtractor; -import org.apache.directory.api.ldap.schemaextractor.impl.ResourceMap; +import org.apache.directory.api.ldap.schema.extractor.impl.DefaultSchemaLdifExtractor; +import org.apache.directory.api.ldap.schema.extractor.impl.ResourceMap; import org.apache.directory.server.core.api.interceptor.context.AddOperationContext; import org.apache.directory.server.core.partition.ldif.AbstractLdifPartition; import org.jboss.logging.Logger;