Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1581

Closed
Open
Created Sep 28, 2012 by Administrator@rootOwner

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

Assignee
Assign to
Time tracking