Skip to content

Commit f39ce84

Browse files
committed
LDAP: Fix property nullability condition
1 parent 38fccef commit f39ce84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/io/kafbat/ui/config/auth/LdapSecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public AbstractLdapAuthenticationProvider authenticationProvider(LdapAuthorities
8080
}
8181

8282
@Bean
83-
@ConditionalOnProperty(value = "oauth2.ldap.activeDirectory", havingValue = "false")
83+
@ConditionalOnProperty(value = "oauth2.ldap.activeDirectory", havingValue = "false", matchIfMissing = true)
8484
public BindAuthenticator ldapBindAuthentication(LdapContextSource ldapContextSource) {
8585
BindAuthenticator ba = new BindAuthenticator(ldapContextSource);
8686

0 commit comments

Comments
 (0)