Minor: add ability to select username field from omniauth-ldap
Created by: sroth80021
At present, the LDAP user names coming into Gitlab are created using what appears to be the first cname= entry. (but I'm not sure how this is selected)
This means that in Gitlab, my name field ends up being of the form 'ROTH, STEVEN' (even though my email address is steve.roth@... and my Git name is 'Steve Roth') In our GitLab instance, we are also seeing variances from user-to-user -- I see another user whose name is coming through in lowercase -- 'lastname, firstname', for example. The users therefore need to go into the profile and configure their name properly.
I think it would be very nice if OmniAuth/Gitlab supported specifying an arbitrary LDAP field to map to the 'Name' field. In our case, it seems the 'displayname' LDAP field would be the way to go, but I imagine that one might want to be able to customize this. Currently, I dont see any field in the OmniAuth LDAP readme by which this can be specified.
This would make the usernames more consistent and easier on the eyes.
I am not sure where this request needs to originate-- in GitLab, or in OmniAuth, so I have entered issues in both.
The omniauth-ldap issue is at https://github.com/intridea/omniauth-ldap/issues/19#issuecomment-8936756