@Override
public String getId() {
return "ldap";
}
Found an answer to this question by posting the same question to the Keycloak discourse forum. The support team replied that you need to use the same provider ID as the default LDAP provider. Which means your custom provider will override the default one. Code snippet above.