Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,016 changes: 0 additions & 2,016 deletions OpenICF-ldap-connector/opends/config.ldif

This file was deleted.

1 change: 0 additions & 1 deletion OpenICF-ldap-connector/opends/keystore.pin

This file was deleted.

34 changes: 29 additions & 5 deletions OpenICF-ldap-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"

Portions Copyrighted 2018-2025 3A Systems, LLC
Portions Copyrighted 2018-2026 3A Systems, LLC
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -107,6 +107,18 @@
<artifactId>opendj-server</artifactId>
<scope>test</scope>
</dependency>
<!--
The OpenDJ distribution archive. LdapConnectorTestBase sets up the embedded test
instance from it (schema, MakeLDIF name dictionaries, self-signed certificate).
-->
<dependency>
<groupId>org.openidentityplatform.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<version>${opendj.version}</version>
<classifier>slim</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
Expand All @@ -128,15 +140,27 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
<systemPropertyVariables>
<opendj.port>${opendj.port}</opendj.port>
<!-- Set from the dependency above; LdapConnectorTestBase sets the instance up from it. -->
<opendj.archive>${org.openidentityplatform.opendj:opendj-server-legacy:zip:slim}</opendj.archive>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- Resolves ${org.openidentityplatform.opendj:opendj-server-legacy:zip:slim} to the archive path. -->
<id>resolve-opendj-archive</id>
<phase>process-test-resources</phase>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
* ====================
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.identityconnectors.ldap;

Expand Down Expand Up @@ -86,7 +87,9 @@ public void checkServerTrusted(X509Certificate[] chain, String authType) throws
}

public X509Certificate[] getAcceptedIssuers() {
return null;
// Not null: this provider is installed as the JVM-wide default, so the embedded
// server picks it up for its own side of the handshake too, and null there aborts it.
return new X509Certificate[0];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
* ====================
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.identityconnectors.ldap;

Expand Down Expand Up @@ -306,7 +307,7 @@ public void testDefaultValues() {
assertFalse(config.isMaintainPosixGroupMembership());
assertFalse(config.isRespectResourcePasswordPolicyChangeAfterReset());
assertNull(config.getPasswordHashAlgorithm());
assertTrue(config.isUseBlocks());
assertFalse(config.isUseBlocks());
assertEquals(100, config.getBlockSize());
assertFalse(config.isUsePagedResultControl());
assertEquals("uid", config.getVlvSortAttribute());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
* ====================
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.identityconnectors.ldap;

Expand Down Expand Up @@ -172,6 +173,7 @@ public void testSupportedControls() {
@Test
public void testServerType() {
LdapConnection conn = new LdapConnection(newConfiguration());
assertEquals(ServerType.OPENDS, conn.getServerType());
// The test instance is OpenDJ; it was OpenDS back when this test last ran.
assertEquals(ServerType.OPENDJ, conn.getServerType());
}
}
Loading
Loading