Skip to content

LDAP Mapper attribut disapear after migrating to 28.8.2 #55218

Open

Description

@I-yadA

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

authentication/webauthn

Bug Description

Hello,

After upgrading Keycloak to 26.8.2, I noticed that in the master realm the LDAP first name attribute mapper (the one for firstName) had disappeared from my LDAP user federation provider. As a result, users' first names were empty. Accounts also had no email, which broke the SMTP connection test ("account has no email").

I was able to recreate the mapper manually, and the first names were restored for all accounts after that. However, I can't explain why this is the only attribute mapper that was lost during the upgrade. The other mappers are still present.

Could someone tell me whether you have seen the same behavior, or whether a migration step in 26.8.x could have removed it?

Environment:

Version

28.8.2

Regression

  • The issue is a regression

Expected behavior

After the upgrade, the LDAP first name mapper (user-attribute-ldap-mapper, firstName) was missing from the provider's Mappers tab in the master realm. LDAP users had an empty first name, and the SMTP connection test failed with "account has no email". The other mappers were still present. Recreating the first name mapper manually and syncing restored the first names for all accounts.

Actual behavior

After the upgrade, the LDAP first name mapper (user-attribute-ldap-mapper, firstName) was missing from the provider's Mappers tab in the master realm. LDAP users had an empty first name, and the SMTP connection test failed with "account has no email". The other mappers were still present. Recreating the first name mapper manually and syncing restored the first names for all accounts.

How to Reproduce?

Not reproduced on a clean install. Observed on an existing instance upgraded from 26.8.0 to 26.8.2 with an LDAP provider configured in the master realm. To check: compare the list of mappers of the LDAP provider before and after the upgrade.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for bug.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions