Keycloak not setting the fullName in ldap


I am trying to map a full name from Keycloak to cn attribute in ldap.

I have created a full name mapper to cn attribute in ldap, and it works correctly if I update user details in admin console, but when new user register the cn attribute is empty.

Anyone knows how to make a cn attribute set automatically on user registration.

Thanks in advance.