Commonize & simplify LDAP and LDAPS auth
This makes it easy for further instances and projects
outside the IDS to use Kustvakt-full with their own LDAP.
Change-Id: I710f50079348d6cff9fd33376aebda33bc9f408e
diff --git a/full/pom.xml b/full/pom.xml
index 4b982be..5b2ecfb 100644
--- a/full/pom.xml
+++ b/full/pom.xml
@@ -86,6 +86,9 @@
<include>**/*.info</include>
<include>**/*.properties</include>
<include>**/*.json</include>
+ <include>**/*.p12</include>
+ <include>**/*.jks</include>
+ <include>**/*.ldif</include>
</includes>
</testResource>
</testResources>
@@ -134,11 +137,16 @@
<argLine>-Xmx512m -XX:MaxPermSize=256m
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager</argLine>
<excludes>
- <exclude>de/ids_mannheim/korap/authentication/*.java</exclude>
+ <exclude>de/ids_mannheim/korap/authentication/APIAuthenticationTest.java</exclude>
+ <exclude>de/ids_mannheim/korap/authentication/AuthenticationFilterTest.java</exclude>
+ <exclude>de/ids_mannheim/korap/authentication/Kustvakt*.java</exclude>
+ <exclude>de/ids_mannheim/korap/authentication/LdapTest.java</exclude>
+ <exclude>de/ids_mannheim/korap/authentication/Random*.java</exclude>
<exclude>de/ids_mannheim/korap/web/controller/TokenExpiryTest.java</exclude>
</excludes>
<includes>
<include>de/ids_mannheim/korap/**/*.java</include>
+ <include>de/ids_mannheim/korap/authentication/LdapAuth3Test.java</include>
</includes>
</configuration>
</plugin>
@@ -284,5 +292,13 @@
<version>5.13.2</version>
<scope>test</scope>
</dependency>
+
+ <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-text</artifactId>
+ <version>1.9</version>
+ </dependency>
+
</dependencies>
</project>