Keycloak integration with AWS standard directory services

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.

That looks like a infrastructure problem. I guess there is no network connectivity. Check your sec. group, access policies,…

Thanks for the advice. Got it work. by using private subnet. public subnet is blocked but I’ll worry about that later.