Before reporting an issue
Area
ldap
Describe the bug
KERBEROS_PRINCIPAL not update if it was empty on creation (mapper missing etc.)
@martin-kanis @pedroigor
Version
26.3.2
Regression
Expected behavior
After configuring the mapper, and running full sync, KERBEROS_PRINCIPAL shout be updated.
Actual behavior
KERBEROS_PRINCIPAL is not update if it was null on first user import.
How to Reproduce?
- create user federation with ldap
- full sync users
- configure kerberos on federation and add kerberos-principal-attribute-mapper
- full sync users
Anything else?
I think this is coused by this check:
https://github.com/keycloak/keycloak/blob/26.3.2/federation/ldap/src/main/java/org/keycloak/storage/ldap/mappers/KerberosPrincipalAttributeMapper.java#L42C47-L42C69
I don't know why to check this before updating.