Added sync registrations field (#3339)
This commit is contained in:
parent
85f0cab6bb
commit
7a556a2e1e
3 changed files with 30 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -64,6 +64,34 @@ export const LdapSettingsSynchronization = ({
|
|||
)}
|
||||
></Controller>
|
||||
</FormGroup>
|
||||
<FormGroup
|
||||
hasNoPaddingTop
|
||||
label={t("syncRegistrations")}
|
||||
labelIcon={
|
||||
<HelpItem
|
||||
helpText="user-federation-help:syncRegistrations"
|
||||
fieldLabelId="user-federation:syncRegistrations"
|
||||
/>
|
||||
}
|
||||
fieldId="syncRegistrations"
|
||||
>
|
||||
<Controller
|
||||
name="config.syncRegistrations"
|
||||
defaultValue={["true"]}
|
||||
control={form.control}
|
||||
render={({ onChange, value }) => (
|
||||
<Switch
|
||||
id="syncRegistrations"
|
||||
data-testid="syncRegistrations"
|
||||
label={t("common:on")}
|
||||
labelOff={t("common:off")}
|
||||
onChange={(value) => onChange([`${value}`])}
|
||||
isChecked={value[0] === "true"}
|
||||
aria-label={t("syncRegistrations")}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup
|
||||
label={t("batchSize")}
|
||||
labelIcon={
|
||||
|
|
Loading…
Reference in a new issue