Add 'Required Dependencies' section in ldap.adoc file

Closes gh-14699
This commit is contained in:
Harsh4902 2024-06-12 11:41:08 +05:30 committed by Steve Riesenberg
parent 254709ce0b
commit 92cab2b678
No known key found for this signature in database
GPG Key ID: 3D0169B18AB8F0A9
1 changed files with 35 additions and 0 deletions

View File

@ -10,6 +10,41 @@ However, despite leveraging a username/password for authentication it does not i
There are many different scenarios for how an LDAP server may be configured so Spring Security's LDAP provider is fully configurable. There are many different scenarios for how an LDAP server may be configured so Spring Security's LDAP provider is fully configurable.
It uses separate strategy interfaces for authentication and role retrieval and provides default implementations which can be configured to handle a wide range of situations. It uses separate strategy interfaces for authentication and role retrieval and provides default implementations which can be configured to handle a wide range of situations.
[[servlet-authentication-ldap-required-dependencies]]
== Required Dependencies
To enable LDAP with Spring Security you have to add following dependencies:
[tabs]
======
Maven::
+
[source,xml,role="primary",subs="verbatim,attributes"]
----
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-ldap</artifactId>
<version>{spring-boot-starter-data-ldap-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<version>{spring-security-ldap-version}</version>
</dependency>
----
Gradle::
+
[source,groovy,role="secondary",subs="verbatim,attributes"]
----
depenendencies {
implementation "org.springframework.boot:spring-boot-starter-data-ldap:{spring-boot-starter-data-ldap-version}"
implementation "org.springframework.security:spring-security-ldap:{spring-security-ldap-version}"
}
----
======
[[servlet-authentication-ldap-prerequisites]] [[servlet-authentication-ldap-prerequisites]]
== Prerequisites == Prerequisites