spring-guides / gs-authenticating-ldap

Authenticating a User with LDAP :: Learn how to secure an application with LDAP.
https://spring.io/guides/gs/authenticating-ldap/
Apache License 2.0
97 stars 154 forks source link

Updated guide and code to Spring Security 5.7 component-based security configuration #45

Closed pmcder closed 11 months ago

pmcder commented 2 years ago

As mentioned in issue #10 the WebSecurityConfigurerAdapter has been deprecated. I have implemented the component based security configuration way to create the embedded Ldap Server and Authentication Manager as outlined in this article: Spring Security Without the WebSecurityConfigurerAdapter I have updated README.adoc accordingly to reference and display the new class.

This pull request also edits test-server.ldif and application.properties to remove the creation of the Domain Component. The Domain Component is already created at line 53 in EmbeddedLdapServerContextSourceFactoryBean.

Buzzardo commented 11 months ago

This has been fixed.