You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/migration-7/ldap.adoc
+245Lines changed: 245 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,248 @@ Consequently, support for ApacheDS will be discontinued in version 7.0.
9
9
10
10
If you are currently using ApacheDS as an embedded LDAP server, we recommend migrating to https://ldap.com/unboundid-ldap-sdk-for-java/[UnboundId].
11
11
You can find instructions in xref:servlet/authentication/passwords/ldap.adoc#servlet-authentication-ldap-embedded[this section] that describe how to set up an embedded UnboundId LDAP server.
12
+
13
+
To migrate, you will need to consider the following:
Apache Directory Server supports binding with SHA-hashed passwords, but UnboundID does not.
167
+
168
+
If you run into trouble with binding users with SHA-hashed passwords, move to Spring Security's `PasswordComparisonAuthenticator` by providing a password encoder to the authentication provider:
Entry withoutPassword = new Entry(old.getDN(), attributes);
244
+
entry.setSearchEntry(withoutPassword);
245
+
}
246
+
}
247
+
}
248
+
}
249
+
----
250
+
251
+
[NOTE]
252
+
====
253
+
It is better to secure passwords by hashing them and by using queries that identify the specific columns that you need.
254
+
====
255
+
256
+
`UnboundIdContainer` does not currently have a way to register a custom `InMemoryOperationInterceptor`, but you can either copy the contents of `UnboundIdContainer` or use Spring LDAP Test's `EmbeddedLdapServer` builder in order to provide this interceptor and confirm your application's readiness.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/servlet/appendix/faq.adoc
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,7 @@ This section addresses common Spring Security architecture questions:
363
363
. <<appendix-faq-namespace-to-bean-mapping>>
364
364
. <<appendix-faq-role-prefix>>
365
365
. <<appendix-faq-what-dependencies>>
366
-
. <<appendix-faq-apacheds-deps>>
366
+
. <<appendix-faq-unboundid-deps>>
367
367
. <<appendix-faq-what-is-userdetailservice>>
368
368
369
369
@@ -412,9 +412,42 @@ The reference manual also includes <<appendix-namespace,an appendix>> that lists
412
412
If you build your project with Maven, adding the appropriate Spring Security modules as dependencies to your `pom.xml` file automatically pulls in the core jars that the framework requires.
413
413
Any that are marked as "`optional`" in the Spring Security `pom.xml` files have to be added to your own `pom.xml` file if you need them.
414
414
415
+
[[appendix-faq-unboundid-deps]]
416
+
=== What dependences are needed to run an embedded UnboundID LDAP server?
417
+
418
+
You need to add the following dependency to your project:
0 commit comments