When I am trying to start an application with LDAP Add-on I get the following error:
2022-10-31 10:43:49.362 ERROR 20464 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method setAuthenticationManager in io.jmix.securityui.authentication.LoginScreenSupport required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration.
Task :bootRun FAILED
I realized that the error appears when LDAP add-on is installed but property jmix.ldap.enabled=false.
When jmix.ldap.enabled=true it starts successfully.
LDAP addon disables standard security configuration. If you disable the LDAP then either enable standard security by settings the application property: