Open M3lkior opened 6 years ago
Temporary solution:
@Component
public class LdapAuthenticationProviderBeanPostProcessor implements BeanPostProcessor {
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof LdapAuthenticationProvider) {
((LdapAuthenticationProvider) bean).setHideUserNotFoundExceptions(false);
}
return bean;
}
}
Summary
I'm using the LdapAuthenticationProviderConfigurer for my spring security LDAP configuration.
Actual Behavior
Actually, i don't find a way to set the hideUserNotFoundExceptions property in the built LdapAuthenticationProvider (by LdapAuthenticationProviderConfigurer)
Expected Behavior
Allow
hideUserNotFoundExceptions
property to be set inauth .ldapAuthentication()
without redefining a complet LdapAuthentificationProviderConfiguration
Version
1.5.1.RELEASE
Sample