File tree Expand file tree Collapse file tree 8 files changed +30
-17
lines changed
java/org/springframework/ldap/samples/plain/web Expand file tree Collapse file tree 8 files changed +30
-17
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
+ id ' io.spring.convention.spring-module'
2
3
id " org.gretty"
3
4
id ' war'
4
5
}
5
6
6
7
dependencies {
8
+ management platform(project(" :spring-ldap-dependencies" ))
9
+
7
10
implementation project(' :spring-ldap-test' ),
8
11
' javax.servlet:jstl:1.2' ,
9
12
" org.springframework:spring-context" ,
10
13
" org.springframework:spring-webmvc" ,
11
- " org.springframework.data:spring-data-commons" ,
12
14
" commons-lang:commons-lang"
13
15
14
16
compileOnly " javax.servlet:servlet-api:2.5"
15
17
16
18
runtimeOnly ' ch.qos.logback:logback-classic:1.0.13'
17
19
20
+ testImplementation " com.unboundid:unboundid-ldapsdk"
21
+ testImplementation platform(' org.junit:junit-bom' )
22
+ testImplementation " org.junit.vintage:junit-vintage-engine"
18
23
testImplementation " org.springframework:spring-test" ,
19
24
" junit:junit" ,
20
25
" org.assertj:assertj-core"
Original file line number Diff line number Diff line change 27
27
28
28
<beans profile =" default" >
29
29
<!-- Populates the LDAP server with initial data -->
30
- <bean class =" org.springframework.ldap.test.LdifPopulator" depends-on =" embeddedLdapServer" >
30
+ <bean class =" org.springframework.ldap.test.unboundid. LdifPopulator" depends-on =" embeddedLdapServer" >
31
31
<property name =" contextSource" ref =" contextSource" />
32
32
<property name =" resource" value =" classpath:/setup_data.ldif" />
33
33
<property name =" base" value =" ${sample.ldap.base}" />
Original file line number Diff line number Diff line change 16
16
17
17
18
18
<!-- Populates the LDAP server with initial data -->
19
- <bean class =" org.springframework.ldap.test.LdifPopulator" depends-on =" embeddedLdapServer" >
19
+ <bean class =" org.springframework.ldap.test.unboundid. LdifPopulator" depends-on =" embeddedLdapServer" >
20
20
<property name =" contextSource" ref =" contextSource" />
21
21
<property name =" resource" value =" classpath:/setup_data.ldif" />
22
22
<property name =" base" value =" ${sample.ldap.base}" />
28
28
This is for test and demo purposes only - EmbeddedLdapServerFactoryBean launches an in-process
29
29
LDAP server.
30
30
-->
31
- <bean id =" embeddedLdapServer" class =" org.springframework.ldap.test.EmbeddedLdapServerFactoryBean" >
32
- <property name =" partitionName" value =" example " />
31
+ <bean id =" embeddedLdapServer" class =" org.springframework.ldap.test.unboundid. EmbeddedLdapServerFactoryBean" >
32
+ <property name =" partitionName" value =" jayway " />
33
33
<property name =" partitionSuffix" value =" ${sample.ldap.base}" />
34
34
<property name =" port" value =" 18880" />
35
35
</bean >
Original file line number Diff line number Diff line change 1
1
plugins {
2
+ id ' io.spring.convention.spring-module'
2
3
id " org.gretty"
3
4
id ' war'
4
5
}
5
6
6
7
dependencies {
8
+ management platform(project(" :spring-ldap-dependencies" ))
9
+
7
10
implementation project(' :spring-ldap-test' ),
8
11
' javax.servlet:jstl:1.2' ,
9
12
" org.springframework:spring-context" ,
10
13
" org.springframework:spring-webmvc" ,
11
- " org.springframework.data:spring-data- commons"
14
+ " commons-lang: commons-lang "
12
15
13
16
compileOnly " javax.servlet:servlet-api:2.5"
14
17
15
18
runtimeOnly ' ch.qos.logback:logback-classic:1.0.13'
16
19
20
+ testImplementation " com.unboundid:unboundid-ldapsdk"
21
+ testImplementation platform(' org.junit:junit-bom' )
22
+ testImplementation " org.junit.vintage:junit-vintage-engine"
17
23
testImplementation " org.springframework:spring-test" ,
18
24
" junit:junit" ,
19
25
" org.assertj:assertj-core"
Original file line number Diff line number Diff line change 1
1
package org .springframework .ldap .samples .plain .web ;
2
2
3
+ import java .io .UnsupportedEncodingException ;
4
+ import java .net .URLEncoder ;
5
+
6
+ import javax .naming .Name ;
7
+
3
8
import org .apache .commons .lang .StringUtils ;
9
+
4
10
import org .springframework .beans .factory .annotation .Autowired ;
5
11
import org .springframework .ldap .core .DirContextOperations ;
6
12
import org .springframework .ldap .samples .plain .dao .PersonDao ;
14
20
import org .springframework .web .bind .annotation .RequestMapping ;
15
21
import org .springframework .web .servlet .ModelAndView ;
16
22
17
- import javax .naming .Name ;
18
- import java .io .UnsupportedEncodingException ;
19
- import java .net .URLEncoder ;
20
-
21
23
/**
22
24
* Default controller.
23
25
*
Original file line number Diff line number Diff line change 27
27
28
28
<beans profile =" default" >
29
29
<!-- Populates the LDAP server with initial data -->
30
- <bean class =" org.springframework.ldap.test.LdifPopulator" depends-on =" embeddedLdapServer" >
30
+ <bean id = " ldifPopulator " class =" org.springframework.ldap.test.LdifPopulator" depends-on =" embeddedLdapServer" >
31
31
<property name =" contextSource" ref =" contextSource" />
32
32
<property name =" resource" value =" classpath:/setup_data.ldif" />
33
33
<property name =" base" value =" ${sample.ldap.base}" />
39
39
This is for test and demo purposes only - EmbeddedLdapServerFactoryBean launches an in-process
40
40
LDAP server.
41
41
-->
42
- <bean id =" embeddedLdapServer" class =" org.springframework.ldap.test.EmbeddedLdapServerFactoryBean" >
43
- <property name =" partitionName" value =" example " />
42
+ <bean id =" embeddedLdapServer" class =" org.springframework.ldap.test.unboundid. EmbeddedLdapServerFactoryBean" >
43
+ <property name =" partitionName" value =" jayway " />
44
44
<property name =" partitionSuffix" value =" ${sample.ldap.base}" />
45
45
<property name =" port" value =" 18880" />
46
46
</bean >
Original file line number Diff line number Diff line change 27
27
This is for test and demo purposes only - EmbeddedLdapServerFactoryBean launches an in-process
28
28
LDAP server.
29
29
-->
30
- <bean id =" embeddedLdapServer" class =" org.springframework.ldap.test.EmbeddedLdapServerFactoryBean" >
31
- <property name =" partitionName" value =" example " />
30
+ <bean id =" embeddedLdapServer" class =" org.springframework.ldap.test.unboundid. EmbeddedLdapServerFactoryBean" >
31
+ <property name =" partitionName" value =" jayway " />
32
32
<property name =" partitionSuffix" value =" ${sample.ldap.base}" />
33
33
<property name =" port" value =" 18880" />
34
34
</bean >
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ include 'test/integration-tests'
36
36
include ' test/integration-tests-openldap'
37
37
include ' test/integration-tests-sunone'
38
38
include ' test/integration-tests-ad'
39
- // include 'samples/plain'
40
- // include 'samples/odm'
39
+ include ' samples/plain'
40
+ include ' samples/odm'
41
41
42
42
43
43
rootProject. children. each { p->
You can’t perform that action at this time.
0 commit comments