How to sync users from OpenLDAP to Keycloak?

4/18/2020

Installed keycloak and openldap by helm on Kubernetes cluster.

helm install openldap stable/openldap
helm install keycloak codecentric/keycloak

It can connect to openldap service

enter image description here

Created DIT in OpenLDAP as

enter image description here

When click Synchronize all users on the Keycloak page

enter image description here

Got this error:

Success! Sync of users finished successfully. 0 imported users, 0 updated users, 5 users failed sync! See server log for more details

It didn't sync any users. How to see the log file? Where is it by default? I have login the keycloak pod in k8s but didn't find under /var/log/ path.


If I set Users DN = ou=users,dc=example,dc=org, it works. It can sync the only one user under users ou. Why can't sync all the user data one time?

-- rawmain
idp
keycloak
kubernetes
kubernetes-helm
openldap

0 Answers