Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit f727420

Browse files
committed
Remove LDAP dependency
1 parent d253123 commit f727420

File tree

14 files changed

+346
-944
lines changed

14 files changed

+346
-944
lines changed

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If you want to conenct to the database with JDBC, the connection spec is followi
5454
password: informix
5555

5656

57-
### Other services (MySQL,OpenLDAP,Kafka,Redis)
57+
### Other services (MySQL,Kafka,Redis)
5858

5959
Identity service needs several services to work. They can be run in the docker with docker-compose.
6060
Before doing docker-compose, set the environment variable "DOCKER_IP" which is supposed to have valid IP address or hostname assigned to your Docker service.

docker/docker-compose.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ services:
1313
- MYSQL_ROOT_PASSWORD=topcoder
1414
volumes:
1515
- .:/data
16-
ldap:
17-
image: "appiriodevops/tc-openldap:0.1.0"
18-
container_name: "tc-ldap"
19-
ports:
20-
- "389:389"
21-
volumes:
22-
- .:/data
2316
kafka:
2417
image: "spotify/kafka"
2518
container_name: "tc-kafka"

pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -216,21 +216,6 @@
216216
<artifactId>db_connection_factory</artifactId>
217217
<version>1.0.0</version>
218218
</dependency>
219-
<dependency>
220-
<groupId>com.topcoder.legacy</groupId>
221-
<artifactId>ldap</artifactId>
222-
<version>1.0.0</version>
223-
</dependency>
224-
<dependency>
225-
<groupId>com.topcoder.legacy</groupId>
226-
<artifactId>ldap_sdk_interface</artifactId>
227-
<version>1.0.0</version>
228-
</dependency>
229-
<dependency>
230-
<groupId>com.topcoder.legacy</groupId>
231-
<artifactId>ldapjdk</artifactId>
232-
<version>1.0.0</version>
233-
</dependency>
234219
<dependency>
235220
<groupId>com.topcoder.legacy</groupId>
236221
<artifactId>shared</artifactId>

src/main/docker/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ COPY tech.core.service.identity.jar ./tech.core.service.identity.jar
1515

1616
COPY config.yml ./config.yml
1717

18-
COPY TC.prod.ldap.keystore ./TC.prod.ldap.keystore
19-
2018
COPY run-service.sh ./run-service.sh
2119

2220
#RUN yum install wget -y; \

src/main/java/com/appirio/tech/core/service/identity/IdentityApplication.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import com.appirio.tech.core.service.identity.util.auth.Auth0Client;
5656
import com.appirio.tech.core.service.identity.util.auth.ServiceAccountAuthenticator;
5757
import com.appirio.tech.core.service.identity.util.cache.CacheService;
58-
import com.appirio.tech.core.service.identity.util.ldap.LDAPService;
5958
import com.appirio.tech.core.service.identity.util.shiro.Shiro;
6059
import com.appirio.tech.core.service.identity.util.store.AuthDataStore;
6160
import com.appirio.tech.core.service.identity.util.zendesk.ZendeskAuthPlugin;
@@ -183,10 +182,6 @@ public void run(IdentityConfiguration configuration, Environment environment) th
183182
final UserDAO userDao = jdbi.onDemand(UserDAO.class);
184183
final IdentityProviderDAO identityProviderDAO = jdbi.onDemand(IdentityProviderDAO.class);
185184

186-
// LDAP Utility
187-
LDAPService ldapService = configuration.getLdap().createLDAPService();
188-
userDao.setLdapService(ldapService);
189-
190185
// DynamoDB based DAO
191186
AmazonDynamoDBClient dynamoDbClient = new AmazonDynamoDBClient(new DefaultAWSCredentialsProviderChain());
192187
ExternalAccountDAO externalAccountDao = new ExternalAccountDAO(dynamoDbClient, Jackson.newObjectMapper()); // TODO: how to create object mapper

src/main/java/com/appirio/tech/core/service/identity/IdentityConfiguration.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.appirio.tech.core.service.identity.util.auth.ServiceAccountAuthenticatorFactory;
1616
import com.appirio.tech.core.service.identity.util.cache.CacheServiceFactory;
1717
import com.appirio.tech.core.service.identity.util.event.EventSystemFactory;
18-
import com.appirio.tech.core.service.identity.util.ldap.LDAPServiceFactory;
1918
import com.appirio.tech.core.service.identity.util.shiro.Shiro;
2019
import com.appirio.tech.core.service.identity.util.store.AuthDataStoreFactory;
2120
import com.appirio.tech.core.service.identity.util.zendesk.ZendeskFactory;
@@ -71,11 +70,7 @@ public class IdentityConfiguration extends APIBaseConfiguration {
7170
@NotNull
7271
@JsonProperty
7372
private EventSystemFactory eventSystem = new EventSystemFactory();
74-
75-
@Valid
76-
@JsonProperty
77-
private LDAPServiceFactory ldap = new LDAPServiceFactory();
78-
73+
7974
@Valid
8075
@NotNull
8176
@JsonProperty
@@ -144,11 +139,7 @@ public Auth0Client getAuth0New() {
144139
public DICEAuth getDiceAuth() {
145140
return diceAuth;
146141
}
147-
148-
public LDAPServiceFactory getLdap() {
149-
return ldap;
150-
}
151-
142+
152143
public EventSystemFactory getEventSystem() {
153144
return eventSystem;
154145
}

src/main/java/com/appirio/tech/core/service/identity/dao/UserDAO.java

Lines changed: 343 additions & 452 deletions
Large diffs are not rendered by default.

src/main/java/com/appirio/tech/core/service/identity/util/ldap/LDAPService.java

Lines changed: 0 additions & 254 deletions
This file was deleted.

0 commit comments

Comments
 (0)