From 6f89bfacc6bd7966437da3aaa6267fa086b80bd2 Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Wed, 15 Jan 2025 12:56:04 +0400 Subject: [PATCH] LDAP: Fix property nullability condition (#779) --- .../main/java/io/kafbat/ui/config/auth/LdapSecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/io/kafbat/ui/config/auth/LdapSecurityConfig.java b/api/src/main/java/io/kafbat/ui/config/auth/LdapSecurityConfig.java index 9b1445507..4b7473942 100644 --- a/api/src/main/java/io/kafbat/ui/config/auth/LdapSecurityConfig.java +++ b/api/src/main/java/io/kafbat/ui/config/auth/LdapSecurityConfig.java @@ -80,7 +80,7 @@ public AbstractLdapAuthenticationProvider authenticationProvider(LdapAuthorities } @Bean - @ConditionalOnProperty(value = "oauth2.ldap.activeDirectory", havingValue = "false") + @ConditionalOnProperty(value = "oauth2.ldap.activeDirectory", havingValue = "false", matchIfMissing = true) public BindAuthenticator ldapBindAuthentication(LdapContextSource ldapContextSource) { BindAuthenticator ba = new BindAuthenticator(ldapContextSource);