From 7a556a2e1eda0dd6599a3fbb2e6ee417124d5bfa Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Fri, 16 Sep 2022 10:58:25 +0200 Subject: [PATCH] Added sync registrations field (#3339) --- .../resources/en/user-federation-help.json | 1 + .../public/resources/en/user-federation.json | 1 + .../ldap/LdapSettingsSynchronization.tsx | 28 +++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/apps/admin-ui/public/resources/en/user-federation-help.json b/apps/admin-ui/public/resources/en/user-federation-help.json index 84e0d0be04..299e028ea2 100644 --- a/apps/admin-ui/public/resources/en/user-federation-help.json +++ b/apps/admin-ui/public/resources/en/user-federation-help.json @@ -25,6 +25,7 @@ "readTimeoutHelp": "LDAP read timeout in milliseconds. This timeout applies for LDAP read operations.", "paginationHelp": "Whether the LDAP server supports pagination", "ldapSynchronizationSettingsDescription": "This section contains options related to synchronization of users from LDAP to the Keycloak database.", + "syncRegistrations": "Should newly created users be created within LDAP store? Priority effects which provider is chosen to sync the new user. This setting is effectively appplied only with WRITABLE edit mode.", "importUsersHelp": "If true, LDAP users will be imported into the Keycloak DB and synced by the configured sync policies.", "batchSizeHelp": "Count of LDAP users to be imported from LDAP to Keycloak within a single transaction", "periodicFullSyncHelp": "Whether periodic full synchronization of LDAP users to Keycloak should be enabled or not", diff --git a/apps/admin-ui/public/resources/en/user-federation.json b/apps/admin-ui/public/resources/en/user-federation.json index 7c13b5c2b0..6cad598baf 100644 --- a/apps/admin-ui/public/resources/en/user-federation.json +++ b/apps/admin-ui/public/resources/en/user-federation.json @@ -37,6 +37,7 @@ "readTimeout": "Read timeout", "pagination": "Pagination", "synchronizationSettings": "Synchronization settings", + "syncRegistrations": "Sync Registrations", "importUsers": "Import users", "batchSize": "Batch size", "periodicFullSync": "Periodic full sync", diff --git a/apps/admin-ui/src/user-federation/ldap/LdapSettingsSynchronization.tsx b/apps/admin-ui/src/user-federation/ldap/LdapSettingsSynchronization.tsx index 1dd7d62e9d..501ccc2dc2 100644 --- a/apps/admin-ui/src/user-federation/ldap/LdapSettingsSynchronization.tsx +++ b/apps/admin-ui/src/user-federation/ldap/LdapSettingsSynchronization.tsx @@ -64,6 +64,34 @@ export const LdapSettingsSynchronization = ({ )} > + + } + fieldId="syncRegistrations" + > + ( + onChange([`${value}`])} + isChecked={value[0] === "true"} + aria-label={t("syncRegistrations")} + /> + )} + /> +