Skip to content

Commit

Permalink
Migrating to Apache DS 2.0.0.AM27 and LDAP API 2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea committed Oct 26, 2023
1 parent bb0f47a commit 4690a56
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.directory.server.ldap.LdapServer;
import org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend;
import org.apache.kerby.kerberos.kerb.KrbException;
import org.junit.jupiter.api.After;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;

public abstract class AbstractLdapIdentityBackendTest extends BackendTest {
Expand Down Expand Up @@ -51,7 +51,7 @@ public static void setLdapServer(LdapServer ldapServer) {
AbstractLdapIdentityBackendTest.ldapServer = ldapServer;
}

@After
@AfterEach
public void tearDown() throws Exception {
backend.stop();
backend.release();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
import org.apache.directory.server.core.annotations.CreateDS;
import org.apache.directory.server.core.annotations.CreatePartition;
import org.apache.directory.server.core.api.LdapCoreSessionConnection;
import org.apache.directory.server.core.integ.FrameworkRunner;
import org.apache.directory.server.core.integ.ApacheDSTestExtension;
import org.apache.kerby.config.Conf;
import org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend;
import org.junit.jupiter.api.Before;
import org.junit.jupiter.api.runner.RunWith;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;

@RunWith(FrameworkRunner.class)
@ExtendWith({ ApacheDSTestExtension.class })
@CreateDS(name = "KerberosKRBProtocolTest-class",
partitions =
{
Expand Down Expand Up @@ -63,7 +63,7 @@ public class DirectoryLdapIdentityBackendTest extends AbstractLdapIdentityBacken
private static final String ADMIN_PW = "secret";


@Before
@BeforeEach
public void setUp() throws Exception {
Conf config = new Conf();
config.setString("admin_dn", ADMIN_DN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
import org.apache.directory.server.core.annotations.ApplyLdifs;
import org.apache.directory.server.core.annotations.CreateDS;
import org.apache.directory.server.core.annotations.CreatePartition;
import org.apache.directory.server.core.integ.FrameworkRunner;
import org.apache.directory.server.core.integ.ApacheDSTestExtension;
import org.apache.kerby.config.Conf;
import org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend;
import org.apache.kerby.kerberos.kerb.KrbException;
import org.apache.kerby.kerberos.kerb.server.KdcConfigKey;
import org.apache.kerby.kerberos.kerb.type.ticket.SgtTicket;
import org.apache.kerby.kerberos.kerb.type.ticket.TgtTicket;
import org.junit.jupiter.api.After;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Before;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.runner.RunWith;
import org.junit.jupiter.api.extension.ExtendWith;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(FrameworkRunner.class)
@ExtendWith({ ApacheDSTestExtension.class })
@CreateDS(name = "KerberosKRBProtocolTest-class",
partitions =
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public class LdapBackendKdcTest extends AbstractLdapBackendKdcTest {
private static final String ADMIN_DN = "uid=admin,ou=system";
private static final String ADMIN_PW = "secret";

@Before
@BeforeEach
public void startUp() throws Exception {
Conf config = new Conf();
config.setString("host", "127.0.0.1");
Expand All @@ -83,7 +83,7 @@ public void startUp() throws Exception {
backend.start();
}

@After
@AfterEach
public void tearDown() throws Exception {
backend.stop();
backend.release();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
import org.apache.directory.server.core.annotations.ApplyLdifs;
import org.apache.directory.server.core.annotations.CreateDS;
import org.apache.directory.server.core.annotations.CreatePartition;
import org.apache.directory.server.core.integ.FrameworkRunner;
import org.apache.directory.server.core.integ.ApacheDSTestExtension;
import org.apache.kerby.config.Conf;
import org.apache.kerby.kerberos.kdc.identitybackend.LdapIdentityBackend;
import org.junit.jupiter.api.Before;
import org.junit.jupiter.api.runner.RunWith;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;

@RunWith(FrameworkRunner.class)
@ExtendWith({ ApacheDSTestExtension.class })
@CreateDS(name = "KerberosKRBProtocolTest-class",
partitions =
{
Expand Down Expand Up @@ -60,7 +60,7 @@ public class LdapIdentityBackendTest extends AbstractLdapIdentityBackendTest {
private static final String ADMIN_DN = "uid=admin,ou=system";
private static final String ADMIN_PW = "secret";

@Before
@BeforeEach
public void setUp() throws Exception {
Conf config = new Conf();
config.setString("host", "127.0.0.1");
Expand All @@ -72,4 +72,5 @@ public void setUp() throws Exception {
backend.initialize();
backend.start();
}

}
2 changes: 1 addition & 1 deletion kerby-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</activation>
<modules>
<module>json-backend</module>
<!--<module>ldap-backend</module>-->
<module>ldap-backend</module>
<module>mavibot-backend</module>
<module>zookeeper-backend</module>
<module>mysql-backend</module>
Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<packaging>pom</packaging>

<properties>
<apacheds.version>2.0.0.AM26</apacheds.version>
<apacheds.version>2.0.0.AM27</apacheds.version>
<commons-io.version>2.12.0</commons-io.version>
<gson.version>2.10.1</gson.version>
<h2.version>2.2.224</h2.version>
<ldap.api.version>2.1.4</ldap.api.version>
<ldap.api.version>2.1.5</ldap.api.version>
<junit.version>5.10.0</junit.version>
<nimbus.jose.version>9.37</nimbus.jose.version>
<slf4j.version>1.7.36</slf4j.version>
Expand Down

0 comments on commit 4690a56

Please sign in to comment.