Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to select username field from LDAP #19

Open
sroth80021 opened this issue Aug 17, 2012 · 1 comment
Open

Add ability to select username field from LDAP #19

sroth80021 opened this issue Aug 17, 2012 · 1 comment

Comments

@sroth80021
Copy link

This request originates from GitLab -- at present, the user names which I believe are provided by OmniAuth are coming into Gitlab 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 seeing variances from user-to-user -- I see another user whose name is coming through in lowercase -- 'lastname, firstname', for example.

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.

@dan-blanchard
Copy link

This would be very nice. At present I'm having to tell all our users to go into their profiles and change the name field after the fact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants