From 0fa339f75b274d480f25b466d842d72eaeebe34d Mon Sep 17 00:00:00 2001 From: Evgeniy Cheban Date: Sun, 19 Apr 2020 01:58:39 +0300 Subject: [PATCH] Allow port=0 for ApacheDSContainer Fixes gh-8144 --- .../LdapAuthenticationProviderConfigurer.java | 57 +++++++------ .../ldap/LdapServerBeanDefinitionParser.java | 82 ++++++++++++------- .../ldap/server/ApacheDSContainerTests.java | 19 ++++- .../ldap/server/ApacheDSContainer.java | 22 ++++- 4 files changed, 120 insertions(+), 60 deletions(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java index 51338a9bab..9c6e2bae85 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java +++ b/config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java @@ -442,14 +442,20 @@ public class LdapAuthenticationProviderConfigurer