Ich versuche LDAP-Authentifizierung von Spring Security zu verwenden. Alles ist in Ordnung. Ich bekomme den folgenden Fehler beim Bereitstellen der Anwendung.Spring Security LDAP-Authentifizierung funktioniert nicht mit Java 8
Caused by: java.lang.RuntimeException: Could not postProcess [email protected]efa of type class org.springframework.security.ldap.server.ApacheDSContainer
at org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor.postProcess(AutowireBeanFactoryObjectPostProcessor.java:70)
at org.springframework.security.config.annotation.SecurityConfigurerAdapter$CompositeObjectPostProcessor.postProcess(SecurityConfigurerAdapter.java:123)
at org.springframework.security.config.annotation.SecurityConfigurerAdapter.postProcess(SecurityConfigurerAdapter.java:82)
at org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.access$400(LdapAuthenticationProviderConfigurer.java:58)
at org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer$ContextSourceBuilder.build(LdapAuthenticationProviderConfigurer.java:555)
at org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer$ContextSourceBuilder.access$500(LdapAuthenticationProviderConfigurer.java:446)
at org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.getContextSource(LdapAuthenticationProviderConfigurer.java:606)
at org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.build(LdapAuthenticationProviderConfigurer.java:76)
Federkernversion ist 4.3.2. Spring Security LDAP-Version ist 4.1.1.
In meiner Google-Umfrage wurde 2013 ein Beitrag veröffentlicht, der besagt, dass das Problem auf einer Inkompatibilität zwischen Spring Security LDAP und Java 8 beruht. Der gleiche Artikel sagte, dass es in einer Spring Boot-Version behoben wurde. Es wird nicht über eine Korrektur für nicht Spring-Boot-Bibliotheken gesprochen.
Hat jemand Spring Safety LDAP-Authentifizierung mit Java 8 versucht? Bitte helfen Sie.
Dank viel für Ihre Antwort aussieht. Ich frage mich, ob die Verwendung des eingebetteten ApacheDS-LDAP-Servers in meinem Fall, d. H. Über die LDIF-Datei auf dem Klassenpfad, dazu führte, dass meine Anwendung fehlschlug? –