From 50548491f5e5f4f29b2ba86453b75bdf12cb3040 Mon Sep 17 00:00:00 2001 From: mfrances17 <39063664+mfrances17@users.noreply.github.com> Date: Wed, 10 Nov 2021 04:56:39 -0500 Subject: [PATCH] add missing field and change default (#1512) --- src/user-federation/help.ts | 2 ++ .../ldap/mappers/LdapMapperUserAttribute.tsx | 21 ++++++++++++++++++- src/user-federation/messages.ts | 1 + 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/user-federation/help.ts b/src/user-federation/help.ts index fe2fa1ce80..4941dcdea2 100644 --- a/src/user-federation/help.ts +++ b/src/user-federation/help.ts @@ -147,6 +147,8 @@ export default { "If on, then during reading of the LDAP attribute value will always used instead of the value from Keycloak DB.", isMandatoryInLdapHelp: "If true, attribute is mandatory in LDAP. Hence if there is no value in Keycloak DB, the empty value will be set to be propagated to LDAP.", + attributeDefaultValueHelp: + "If there is no value in Keycloak DB and attribute is mandatory in LDAP, this value will be propagated to LDAP.", isBinaryAttributeHelp: "Should be true for binary LDAP attributes.", derFormattedHelp: diff --git a/src/user-federation/ldap/mappers/LdapMapperUserAttribute.tsx b/src/user-federation/ldap/mappers/LdapMapperUserAttribute.tsx index e1a5b4300b..ddc59e23e5 100644 --- a/src/user-federation/ldap/mappers/LdapMapperUserAttribute.tsx +++ b/src/user-federation/ldap/mappers/LdapMapperUserAttribute.tsx @@ -74,7 +74,7 @@ export const LdapMapperUserAttribute = ({ > ( + + } + fieldId="kc-attribute-default-value" + > + +