Backport of gh-2884

Comment From: spring-projects-issues

Fixed via 93a1fc104c865a1ae90ae9dd7cb01186d081cbfb

Comment From: FacuDN

Fixed via 93a1fc1

Hi sir, how can I download this version of the ActiveDirectory? Because my project has the old version without this connection exception fix (Im using Gradle).

Thank you very much!

Comment From: jzheaux

Hi, @FacuDN. This was released in 5.2.4. You can specify the version you need in your Gradle file:

implementation "org.springframework.security:spring-security-ldap:${the.version.you.want}"

Or, if you are using Spring Boot to manage your dependencies, then you can make sure you're using the latest Spring Boot and then leave the version number off:

implementation "org.springframework.security:spring-security-ldap"

Comment From: FacuDN

groovy-gradle :${the.version.you.want}

Thank you so much for the reply, sorry if im making rookie questions, i am relative new to Spring Boot.

The first approach is not downloading the dependecy even after refreshing the gradle project (implementation 'org.springframework.security:spring-security-ldap:${5.2.4}'. I also tried implementation 'org.springframework.security:spring-security-ldap:5.2.4').

And the second approach is downloading an older version (5.1.6).

Any suggestion?

Comment From: jzheaux

Unfortunately, there are numerous things that could be going on, and this probably isn't the right forum to help you address each one of them.

I'd recommend posting your question on StackOverflow where there's a broad Gradle community that can help you address your question much better than we can. I'd recommend using the tags gradle and spring-boot in your question.