Repository navigation
It's possible to import user from LDAP to Keycloak only the first time the user log in to Keycloak? #15611
Unanswered
Jackojack7
asked this question in
Q&A
Replies: 1 comment 2 replies
|
I don't think that's possible with the default LDAP provider from Keycloak. It's designed to synchronize the LDAP users to Keycloak. If the user doesn't exist in Keycloak it's not possible to authenticate/login with it. What we did is to create our own LDAP provider that only authenticates the user's email and password with LDAP (ldap bind), and not store any user information in Keycloak at all. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the Keycloak documentation, under Synchronizing LDAP users to Keycloak, it says:
But.. actually, I get the exact opposite behavior. When I add LDAP configuration to Keycloak (v.20), it immediately syncs all the LDAP users to my Keycloak users list. How can I import just the users only on the first time a user logs in, as the documentation states.
the configuration I use:
I have also asked it on - stackoverflow
All reactions