I am trying to create a federated authentication using the Keycloak and following the steps mentioned here: Setup User Federation with Keycloak
I have been using the port 10389
instead of 389
mentioned in the document. Everything seems to be working fine until the step where I am making the connection from Keycloak to LDAP.
When I provide the Connection URL
as ldap://localhost:10389
and click on the Test Connection
then I get the error:
Error! Error when trying to connect to LDAP. See server.log for details
I am not sure what's wrong because when I check in the Apache Directory Studio
there everything seems to be working fine for me and I am able to get all the users list etc. I am not sure why I am unable to make the connection from Keycloak to LDAP.
I tried the following things but nothing worked for me:
After trying a lot I found the solution. Posting the answer as it can be useful to someone else in the future.
I was using the localhost
and 127.0.0.1
which was not working. Finally, I checked the IP Address of my system using the terminal (for mac ipconfig
) and tried that and it worked:
ldap://192.168.1.12:10389