I created an LDAP proxy using an LDAP backend to connect to our Active Directory server. Unfortunately, our AD server has incorrect usernames in the sAMAccountName attribute, so I would like to override this with the prefix of the value found in the userPrincipalName attribute (the part before @domain).
Is this possible at all? Unfortunately, I haven't succeeded in doing this so far.