add missing field and change default (#1512)
This commit is contained in:
parent
de8289064d
commit
50548491f5
3 changed files with 23 additions and 1 deletions
|
@ -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.",
|
"If on, then during reading of the LDAP attribute value will always used instead of the value from Keycloak DB.",
|
||||||
isMandatoryInLdapHelp:
|
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.",
|
"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.",
|
isBinaryAttributeHelp: "Should be true for binary LDAP attributes.",
|
||||||
|
|
||||||
derFormattedHelp:
|
derFormattedHelp:
|
||||||
|
|
|
@ -74,7 +74,7 @@ export const LdapMapperUserAttribute = ({
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="config.read-only"
|
name="config.read-only"
|
||||||
defaultValue={["false"]}
|
defaultValue={["true"]}
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ onChange, value }) => (
|
render={({ onChange, value }) => (
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -144,6 +144,25 @@ export const LdapMapperUserAttribute = ({
|
||||||
)}
|
)}
|
||||||
></Controller>
|
></Controller>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
<FormGroup
|
||||||
|
label={t("attributeDefaultValue")}
|
||||||
|
labelIcon={
|
||||||
|
<HelpItem
|
||||||
|
helpText={helpText("attributeDefaultValueHelp")}
|
||||||
|
forLabel={t("attributeDefaultValue")}
|
||||||
|
forID="kc-attribute-default-value"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
fieldId="kc-attribute-default-value"
|
||||||
|
>
|
||||||
|
<TextInput
|
||||||
|
type="text"
|
||||||
|
id="kc-attribute-default-value"
|
||||||
|
data-testid="mapper-attributeDefaultValue-fld"
|
||||||
|
name="config.attribute-default-value[0]"
|
||||||
|
ref={form.register}
|
||||||
|
/>
|
||||||
|
</FormGroup>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("isBinaryAttribute")}
|
label={t("isBinaryAttribute")}
|
||||||
labelIcon={
|
labelIcon={
|
||||||
|
|
|
@ -188,6 +188,7 @@ export default {
|
||||||
readOnly: "Read only",
|
readOnly: "Read only",
|
||||||
alwaysReadValueFromLdap: "Always read value from LDAP",
|
alwaysReadValueFromLdap: "Always read value from LDAP",
|
||||||
isMandatoryInLdap: "Is mandatory in LDAP",
|
isMandatoryInLdap: "Is mandatory in LDAP",
|
||||||
|
attributeDefaultValue: "Attribute default value",
|
||||||
isBinaryAttribute: "Is binary attribute",
|
isBinaryAttribute: "Is binary attribute",
|
||||||
derFormatted: "DER formatted",
|
derFormatted: "DER formatted",
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue