File tree Expand file tree Collapse file tree
src/main/java/org/dspace/authenticate
main/java/org/dspace/app/rest/utils
dspace-services/src/main/java/org/dspace/services/email Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -445,6 +445,7 @@ https://wiki.lyrasis.org/display/DSPACE/Code+Contribution+Guidelines
445445 * Spring Expression Language (SpEL) (org.springframework:spring-expression:6.2.7 - https://github.com/spring-projects/spring-framework)
446446 * Spring Commons Logging Bridge (org.springframework:spring-jcl:6.2.7 - https://github.com/spring-projects/spring-framework)
447447 * Spring JDBC (org.springframework:spring-jdbc:6.2.7 - https://github.com/spring-projects/spring-framework)
448+ * Spring LDAP Core (org.springframework.ldap:spring-ldap-core:3.2.15 - https://github.com/spring-projects/spring-ldap)
448449 * Spring Object/Relational Mapping (org.springframework:spring-orm:6.2.7 - https://github.com/spring-projects/spring-framework)
449450 * Spring TestContext Framework (org.springframework:spring-test:6.2.7 - https://github.com/spring-projects/spring-framework)
450451 * Spring Transaction (org.springframework:spring-tx:6.2.7 - https://github.com/spring-projects/spring-framework)
Original file line number Diff line number Diff line change 379379 <version >${hibernate-validator.version} </version >
380380 </dependency >
381381
382+ <dependency >
383+ <groupId >org.springframework.ldap</groupId >
384+ <artifactId >spring-ldap-core</artifactId >
385+ </dependency >
382386 <dependency >
383387 <groupId >org.springframework</groupId >
384388 <artifactId >spring-orm</artifactId >
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ public void initialize(final ConfigurableApplicationContext applicationContext)
8181 * Initially look for JNDI Resource called "java:/comp/env/dspace.dir".
8282 * If not found, use value provided in "dspace.dir" in Spring Environment
8383 */
84+ // JNDI usage is safe here as it loads internal DSpace configuration, not user input.
8485 @ SuppressWarnings ("BanJNDI" )
8586 private String getDSpaceHome (ConfigurableEnvironment environment ) {
8687 // Load the "dspace.dir" property from Spring Boot's Configuration (application.properties)
Original file line number Diff line number Diff line change 1616# # This file is found on classpath at src/test/resources/log4j2-test.xml
1717logging.config = classpath:log4j2-test.xml
1818
19+ # Disable LDAP Health Check during tests to avoid external LDAP requirement
20+ management.health.ldap.enabled =false
21+
1922# Our integration tests expect application to be deployed at the root path (/)
20- server.servlet.context-path =/
23+ server.servlet.context-path =/
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public Session getSession() {
6262 }
6363
6464 @ PostConstruct
65+ // JNDI usage is safe here as it looks up a configured mail session resource, not user input.
6566 @ SuppressWarnings ("BanJNDI" )
6667 public void init () {
6768 // See if there is already a Session in our environment
Original file line number Diff line number Diff line change 2020 <!-- === GENERAL / DSPACE-API DEPENDENCIES ===-->
2121 <java .version>21</java .version>
2222 <spring .version>6.2.15</spring .version>
23+ <spring-ldap .version>3.3.5</spring-ldap .version>
2324 <spring-boot .version>3.5.10</spring-boot .version>
2425 <spring-security .version>6.5.7</spring-security .version> <!-- sync with version used by spring-boot-->
2526 <hibernate .version>6.4.10.Final</hibernate .version>
12231224 <version >${spring.version} </version >
12241225 </dependency >
12251226
1227+ <dependency >
1228+ <groupId >org.springframework.ldap</groupId >
1229+ <artifactId >spring-ldap-core</artifactId >
1230+ <version >${spring-ldap.version} </version >
1231+ </dependency >
1232+ <!-- Specify the version of micrometer to use. Solves dependency convergence issues in spring-ldap-core -->
1233+ <dependency >
1234+ <groupId >io.micrometer</groupId >
1235+ <artifactId >micrometer-core</artifactId >
1236+ <version >1.14.14</version >
1237+ </dependency >
1238+ <dependency >
1239+ <groupId >io.micrometer</groupId >
1240+ <artifactId >micrometer-observation</artifactId >
1241+ <version >1.14.14</version >
1242+ </dependency >
1243+
12261244 <dependency >
12271245 <artifactId >spring-tx</artifactId >
12281246 <groupId >org.springframework</groupId >
You can’t perform that action at this time.
0 commit comments