When using LDAP for user authentication the full name is set same as 
username, but we need the full name for display in GitLab.

Either one of these methods for setting Name for a user from LDAP
Name: givenName + sn
Name: displayName

My LDAP configuration in /etc/gitlab/gitlab.rb

gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-EOS # remember to close this 
block with 'EOS' below
main: # 'main' is the GitLab 'provider ID' of this LDAP server
  label: 'LDAP'
  host: 'ldap.company.com'
  port: 389
  uid: 'sAMAccountName'
  method: 'plain'
  bind_dn: 'au...@ad.company.com'
  password: '**************'
  active_directory: true
  allow_username_or_email_login: false
  base: 'dc=ad,dc=company,dc=com'
  user_filter: '(&(objectclass=person)(userAccountControl=512))'
EOS

Perhaps if this could be set in the LDAP configuration:
  name: displayName


-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/a2219c58-2187-40ba-84de-c1fd9a255fb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to