diff --git a/src/user-federation/ldap/mappers/LdapMapperRoleGroup.tsx b/src/user-federation/ldap/mappers/LdapMapperRoleGroup.tsx index 93c8511960..6a07bd8cdd 100644 --- a/src/user-federation/ldap/mappers/LdapMapperRoleGroup.tsx +++ b/src/user-federation/ldap/mappers/LdapMapperRoleGroup.tsx @@ -90,6 +90,7 @@ export const LdapMapperRoleGroup = ({ type="text" id="kc-name-attribute" data-testid="name-attribute" + defaultValue="cn" name={ isRole ? "config.role-name-ldap-attribute[0]" @@ -119,6 +120,7 @@ export const LdapMapperRoleGroup = ({ type="text" id="kc-object-classes" data-testid="object-classes" + defaultValue="group" name={ isRole ? "config.role-object-classes[0]" @@ -143,7 +145,7 @@ export const LdapMapperRoleGroup = ({ > ( @@ -413,6 +417,7 @@ export const LdapMapperRoleGroup = ({ isRequired type="text" id="kc-member-of-attribute" + defaultValue="memberOf" data-testid="member-of-attribute" name="config.memberof-ldap-attribute[0]" ref={form.register} @@ -434,7 +439,7 @@ export const LdapMapperRoleGroup = ({ > (