diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-08 10:58:48 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-08 16:18:14 +0100 |
commit | c915e2c8237ddcae57ec48e700badd9d5bfd8c8c (patch) | |
tree | 045b66c46a9af2022734ccf390ccd979f2ddb07a /config/gitlab.yml.example | |
parent | e0da2c352325c1cb2ede88a73434ed7afc037481 (diff) | |
download | gitlab-ce-c915e2c8237ddcae57ec48e700badd9d5bfd8c8c.tar.gz |
Allow configuration of LDAP attributes GitLab will use for the new user account.
Diffstat (limited to 'config/gitlab.yml.example')
-rw-r--r-- | config/gitlab.yml.example | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example index 9eb99dae456..cb697fad7ab 100644 --- a/config/gitlab.yml.example +++ b/config/gitlab.yml.example @@ -144,6 +144,21 @@ production: &base bind_dn: '_the_full_dn_of_the_user_you_will_bind_with' password: '_the_password_of_the_bind_user' + # LDAP attributes that GitLab will use to create an account for the LDAP user. + # Can be either the name of an attribute as a string (e.g. 'mail'), + # or an array of names of attributes to try in order (e.g. ['mail', 'email']). + # The default values are listed. + attributes: + # username: ['uid', 'userid', 'sAMAccountName'] + # name: 'cn' # Also falls back to a combination of first_name and last_name, see below + # email: ['mail', 'email', 'userPrincipalName'] + + # If no full name could be found at the attribute specified for `name`, + # the full name is determined as `<first_name> <last_name>`, using the + # attributes specified below. + # first_name: 'givenName' + # last_name: 'sn' + # This setting specifies if LDAP server is Active Directory LDAP server. # For non AD servers it skips the AD specific queries. # If your LDAP server is not AD, set this to false. |