Skip to content

Commit 92cab2b

Browse files
Harsh4902sjohnr
authored andcommitted
Add 'Required Dependencies' section in ldap.adoc file
Closes gh-14699
1 parent 254709c commit 92cab2b

File tree

1 file changed

+35
-0
lines changed
  • docs/modules/ROOT/pages/servlet/authentication/passwords

1 file changed

+35
-0
lines changed

docs/modules/ROOT/pages/servlet/authentication/passwords/ldap.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,41 @@ However, despite leveraging a username/password for authentication it does not i
1010
There are many different scenarios for how an LDAP server may be configured so Spring Security's LDAP provider is fully configurable.
1111
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.
1212

13+
[[servlet-authentication-ldap-required-dependencies]]
14+
== Required Dependencies
15+
16+
To enable LDAP with Spring Security you have to add following dependencies:
17+
18+
[tabs]
19+
======
20+
Maven::
21+
+
22+
[source,xml,role="primary",subs="verbatim,attributes"]
23+
----
24+
<dependency>
25+
<groupId>org.springframework.boot</groupId>
26+
<artifactId>spring-boot-starter-data-ldap</artifactId>
27+
<version>{spring-boot-starter-data-ldap-version}</version>
28+
</dependency>
29+
30+
<dependency>
31+
<groupId>org.springframework.security</groupId>
32+
<artifactId>spring-security-ldap</artifactId>
33+
<version>{spring-security-ldap-version}</version>
34+
</dependency>
35+
----
36+
37+
Gradle::
38+
+
39+
[source,groovy,role="secondary",subs="verbatim,attributes"]
40+
----
41+
depenendencies {
42+
implementation "org.springframework.boot:spring-boot-starter-data-ldap:{spring-boot-starter-data-ldap-version}"
43+
implementation "org.springframework.security:spring-security-ldap:{spring-security-ldap-version}"
44+
}
45+
----
46+
======
47+
1348
[[servlet-authentication-ldap-prerequisites]]
1449
== Prerequisites
1550

0 commit comments

Comments
 (0)