Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1003 Bytes

File metadata and controls

43 lines (37 loc) · 1003 Bytes

spring-security

LDAP Implementation

Required Dependencies for LDAP Implementation

<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
		<groupId>org.springframework.ldap</groupId>
		<artifactId>spring-ldap-core</artifactId>
</dependency>
<dependency>
		<groupId>org.springframework.security</groupId>
		<artifactId>spring-security-ldap</artifactId>
</dependency>
<dependency>
		<groupId>com.unboundid</groupId>
		<artifactId>unboundid-ldapsdk</artifactId>
</dependency>

Application.properties

spring.ldap.embedded.base-dn=dc=springframework,dc=org 
spring.ldap.embedded.ldif=classpath:test-server.ldif 
spring.ldap.embedded.port=8389 
spring.ldap.embedded.url=ldap://localhost:8389/

test-server.ldif (Referred from below link)

https://spring.io/guides/gs/authenticating-ldap/

Required Username and Password to run the application

Username: ben
Password: benspassword