Spring-security: SEC-2664: ActiveDirectoryLdapAuthenticationProvider should wrap communication exceptions in InternalAuthenticationServiceException

Created on 24 Apr 2020  路  5Comments  路  Source: spring-projects/spring-security

Backport of gh-2884

ldap duplicate backport bug jira

All 5 comments

Fixed via 93a1fc104c865a1ae90ae9dd7cb01186d081cbfb

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!

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"
:${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?

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.

Was this page helpful?
0 / 5 - 0 ratings