Active Directory email address

Hey everyone,

I’m having some trouble integrating Gitlab with my AD server.

I’ve got it up and running and things are working for existing users, but when a new user logs in for the first time and Gitlab creates the account is when I see issues.

My AD domain is “ad.mydomain.com” and the email addresses are “name@domain.com” (minus the AD). When a new user logs in, their account is created and the email address Gitlab uses their samaccountname which is “name@ad.domain.com” when I’d like to use the mail attribute which is “name@domain.com

I’ve looked through the config and haven’t been able to get anything to create the account as I want. Am I missing something or is this just not possible?

Cheers,
Eric