Spring Boot LDAP AutoConfigure


License

License

Categories

Categories

Spring Boot Container Microservices Auto Application Layer Libs Code Generators config Configuration
GroupId

GroupId

com.github.eddumelendez.ldap
ArtifactId

ArtifactId

ldap-spring-boot-autoconfigure
Last Version

Last Version

1.0.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Boot LDAP AutoConfigure
Spring Boot LDAP AutoConfigure
Project URL

Project URL

https://github.com/eddumelendez/ldap-spring-boot
Source Code Management

Source Code Management

https://github.com/eddumelendez/ldap-spring-boot

Download ldap-spring-boot-autoconfigure

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.eddumelendez.ldap/ldap-spring-boot-autoconfigure/ -->
<dependency>
    <groupId>com.github.eddumelendez.ldap</groupId>
    <artifactId>ldap-spring-boot-autoconfigure</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.eddumelendez.ldap/ldap-spring-boot-autoconfigure/
implementation 'com.github.eddumelendez.ldap:ldap-spring-boot-autoconfigure:1.0.0.RELEASE'
// https://jarcasting.com/artifacts/com.github.eddumelendez.ldap/ldap-spring-boot-autoconfigure/
implementation ("com.github.eddumelendez.ldap:ldap-spring-boot-autoconfigure:1.0.0.RELEASE")
'com.github.eddumelendez.ldap:ldap-spring-boot-autoconfigure:jar:1.0.0.RELEASE'
<dependency org="com.github.eddumelendez.ldap" name="ldap-spring-boot-autoconfigure" rev="1.0.0.RELEASE">
  <artifact name="ldap-spring-boot-autoconfigure" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.eddumelendez.ldap', module='ldap-spring-boot-autoconfigure', version='1.0.0.RELEASE')
)
libraryDependencies += "com.github.eddumelendez.ldap" % "ldap-spring-boot-autoconfigure" % "1.0.0.RELEASE"
[com.github.eddumelendez.ldap/ldap-spring-boot-autoconfigure "1.0.0.RELEASE"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot jar
org.springframework.boot : spring-boot-autoconfigure jar
org.springframework.data : spring-data-commons jar
org.springframework.ldap : spring-ldap-core jar 2.1.0.RELEASE

Project Modules

There are no modules declared in this project.

Spring LDAP integration with Spring Boot

Build Status

Note
This project is not under development. Spring LDAP support is provided by Spring Boot out-of-the-box since 1.5.0.RELEASE. For more info visit LDAP support in Spring Boot

This project is built on top of spring-ldap project. This project provide auto-configuration for spring-ldap.

Dependency

Maven:

<dependency>
    <groupId>com.github.eddumelendez.ldap</groupId>
    <artifactId>ldap-spring-boot-starter</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>

Gradle:

compile "com.github.eddumelendez.ldap:ldap-spring-boot-starter:1.0.0.RELEASE"

Properties

The following properties are available to customize the ContextSource.

ldap.urls= # LDAP urls
ldap.base= # Base suffix from which all operations should originate.
ldap.username= # Login user of the LDAP.
ldap.password= # Login password of the LDAP.
ldap.base-environment.*= # LDAP custom environment properties.

Using Embedded LDAP server

Unboundid SDK LDAP is provided as a embedded LDAP server and it’s auto-configured if the dependency is detected.

Add the following dependency:

Maven:

<dependency>
    <groupId>com.unboundid</groupId>
    <artifactId>unboundid-ldapsdk</artifactId>
    <version>3.1.1</version>
    <scope>test</scope>
</dependency>

Gradle:

testCompile "com.unboundid:unboundid-ldapsdk:3.1.1"

You can use the following properties to customize the embedded server:

ldap.embedded.port= # Embedded LDAP port. Use 0 for random port.
ldap.embedded.credential.username= # Embedded LDAP username.
ldap.embedded.credential.passwod= # Embedded LDAP password.
ldap.embedded.partitionSuffix= # LDAP partition suffix.
ldap.embedded.ldif= # Schema (LDIF) script resource reference.

Examples

You can check the examples here.

Versions

Version
1.0.0.RELEASE