LDAP authentication with upn (userPrincilName)

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Joselyne
Posts: 75
Joined: 14 Dec 2023, 15:59

LDAP authentication with upn (userPrincilName)

Post by Joselyne »

Hello,

I would like users to connect to mantis using their upn (that is the email adress in the active directory) intead of their username.
I've tried to replace $g_ldap_uid_field = 'sAMAccountName'; with $g_ldap_uid_field = 'userPrincipalName' but i get errors due to the ldap_cache_user_data() function and then the authentication failed.

Is there a way to achieve this fonctionnality without modifing the core functions of mantis?

Thanks for your help.
Post Reply