From 688f4a07a3b51d5e7c520ded2dcd6dfcbc19c6b3 Mon Sep 17 00:00:00 2001 From: mposolda Date: Mon, 25 Aug 2014 17:17:32 +0200 Subject: [PATCH] Added docs about sync of users --- .../en/en-US/modules/user-federation.xml | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/docbook/reference/en/en-US/modules/user-federation.xml b/docbook/reference/en/en-US/modules/user-federation.xml index 9941a8d2d1..b08a58b306 100755 --- a/docbook/reference/en/en-US/modules/user-federation.xml +++ b/docbook/reference/en/en-US/modules/user-federation.xml @@ -101,7 +101,8 @@ Other options - The rest of the configuration options should be self explanatory. + The rest of the configuration options should be self explanatory. You can use tooltips in admin console + to see some more details about them. @@ -109,6 +110,46 @@ +
+ Sync of LDAP users to Keycloak + + LDAP Federation Provider will automatically take care of synchronization (import) of needed LDAP users into Keycloak database. + For example once you first authenticate LDAP user john from Keycloak UI, LDAP Federation provider will + first import this LDAP user into Keycloak database and then authenticate against LDAP password. + + + Thing is that Federation Provider import just requested users by default, so if you click to View all users + in Keycloak admin console, you will see just those LDAP users, which were already authenticated/requested by Keycloak. + + If you want to sync all LDAP users into Keycloak database, you may configure and enable Sync, which is in + admin console on same page like the configuration of Federation provider itself. There are 2 types of sync: + + + Full sync + + + This will synchronize all LDAP users into Keycloak DB. Those LDAP users, which already exist in Keycloak and were + changed in LDAP directly will be updated in Keycloak DB (For example if user Mary Kelly was changed in LDAP to Mary Doe). + + + + + Changed users sync + + + This will check LDAP and it will sync into Keycloak just those users, which were created or updated in LDAP from the time of last sync. + + + + + + + In usual cases you may want to trigger full sync at the beginning, so you will import all LDAP users to Keycloak just once. Then you may setup + periodic sync of changed users, so Keycloak will periodically ask LDAP server for newly created or updated users and backport them to Keycloak DB. + Also you may want to trigger full sync again after some longer time or setup periodic full sync as well. + + In admin console, you can trigger sync directly or you can enable periodic changed or full sync. +
Writing your own User Federation Provider