Skip to content

Commit

Permalink
set default ldap connection pooling to plain and ssl
Browse files Browse the repository at this point in the history
closes keycloak#35758

Signed-off-by: Niko Köbler <[email protected]>
  • Loading branch information
dasniko committed Dec 10, 2024
1 parent f21bbb2 commit ebfd350
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@
public class KeycloakMain implements QuarkusApplication {

private static final String INFINISPAN_VIRTUAL_THREADS_PROP = "org.infinispan.threads.virtual";
private static final String LDAP_CONNECTION_POOL_PROTOCOL = "com.sun.jndi.ldap.connect.pool.protocol";

static {
// enable Infinispan and JGroups virtual threads by default
if (System.getProperty(INFINISPAN_VIRTUAL_THREADS_PROP) == null) {
System.setProperty(INFINISPAN_VIRTUAL_THREADS_PROP, "true");
}
// set connection pooling for plain and tls protocols by default
if (System.getProperty(LDAP_CONNECTION_POOL_PROTOCOL) == null) {
System.setProperty(LDAP_CONNECTION_POOL_PROTOCOL, "plain ssl");
}
}

public static void main(String[] args) {
Expand Down

0 comments on commit ebfd350

Please sign in to comment.