This is the error when trying to test the connection from Keycloak to AWS active directory services…
2022-04-01 21:24:24,940 ERROR [org.keycloak.services] (executor-thread-5) KC-SERVICES0055: Error when connecting to LDAP: corp.pcluster.com:389: javax.naming.CommunicationException: corp.pcluster.com:389 [Root exception is java.net.ConnectException: Connection refused]
I’m running Keycloak version 17.0.1 on Ubuntu 20.04 ec2 instance.