mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-25 11:43:29 +00:00
Polish gh-15235
This commit is contained in:
parent
92cab2b678
commit
f622d8e2e2
@ -13,34 +13,34 @@ It uses separate strategy interfaces for authentication and role retrieval and p
|
|||||||
[[servlet-authentication-ldap-required-dependencies]]
|
[[servlet-authentication-ldap-required-dependencies]]
|
||||||
== Required Dependencies
|
== Required Dependencies
|
||||||
|
|
||||||
To enable LDAP with Spring Security you have to add following dependencies:
|
To get started, add the `spring-security-ldap` dependency to your project.
|
||||||
|
When using Spring Boot, add the following dependencies:
|
||||||
|
|
||||||
|
.Spring Security LDAP Dependencies
|
||||||
[tabs]
|
[tabs]
|
||||||
======
|
======
|
||||||
Maven::
|
Maven::
|
||||||
+
|
+
|
||||||
[source,xml,role="primary",subs="verbatim,attributes"]
|
[source,xml,role="primary"]
|
||||||
----
|
----
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-ldap</artifactId>
|
<artifactId>spring-boot-starter-data-ldap</artifactId>
|
||||||
<version>{spring-boot-starter-data-ldap-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-ldap</artifactId>
|
<artifactId>spring-security-ldap</artifactId>
|
||||||
<version>{spring-security-ldap-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
----
|
----
|
||||||
|
|
||||||
Gradle::
|
Gradle::
|
||||||
+
|
+
|
||||||
[source,groovy,role="secondary",subs="verbatim,attributes"]
|
[source,groovy,role="secondary"]
|
||||||
----
|
----
|
||||||
depenendencies {
|
depenendencies {
|
||||||
implementation "org.springframework.boot:spring-boot-starter-data-ldap:{spring-boot-starter-data-ldap-version}"
|
implementation "org.springframework.boot:spring-boot-starter-data-ldap"
|
||||||
implementation "org.springframework.security:spring-security-ldap:{spring-security-ldap-version}"
|
implementation "org.springframework.security:spring-security-ldap"
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
======
|
======
|
||||||
|
Loading…
x
Reference in New Issue
Block a user