Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-09-08 12:58:48 +0300
committerDouwe Maan <douwe@gitlab.com>2015-09-08 18:18:14 +0300
commitc915e2c8237ddcae57ec48e700badd9d5bfd8c8c (patch)
tree045b66c46a9af2022734ccf390ccd979f2ddb07a /config
parente0da2c352325c1cb2ede88a73434ed7afc037481 (diff)
Allow configuration of LDAP attributes GitLab will use for the new user account.
Diffstat (limited to 'config')
-rw-r--r--config/gitlab.yml.example15
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.