summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-06-09 15:37:23 -0700
committerMichael Kozono <mkozono@gmail.com>2017-07-26 02:43:38 -0700
commite0fe34778d4705111db0b553925be7da5ee3c66d (patch)
tree611761d34f5afdd61e7abd2214bd6ad171c677b7
parentfdaa49ca29c458a99cdae207784ecf10f0d208c0 (diff)
downloadgitlab-ce-e0fe34778d4705111db0b553925be7da5ee3c66d.tar.gz
Copy comment improvements from documentation
-rw-r--r--config/gitlab.yml.example15
1 files changed, 11 insertions, 4 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
index 8ddd9bab4e6..f702e812955 100644
--- a/config/gitlab.yml.example
+++ b/config/gitlab.yml.example
@@ -251,9 +251,13 @@ production: &base
# Example: 'Paris' or 'Acme, Ltd.'
label: 'LDAP'
+ # Example: 'ldap.mydomain.com'
host: '_your_ldap_server'
- port: 389
- uid: 'sAMAccountName'
+ # This port is an example, it is sometimes different but it is always an integer and not a string
+ port: 389 # usually 636 for SSL
+ uid: 'sAMAccountName' # This should be the attribute, not the value that maps to uid.
+
+ # Examples: 'america\\momo' or 'CN=Gitlab Git,CN=Users,DC=mydomain,DC=com'
bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
password: '_the_password_of_the_bind_user'
@@ -314,17 +318,20 @@ production: &base
# Base where we can search for users
#
- # Ex. ou=People,dc=gitlab,dc=example
+ # Ex. 'ou=People,dc=gitlab,dc=example' or 'DC=mydomain,DC=com'
#
base: ''
# Filter LDAP users
#
- # Format: RFC 4515 http://tools.ietf.org/search/rfc4515
+ # Format: RFC 4515 https://tools.ietf.org/search/rfc4515
# Ex. (employeeType=developer)
#
# Note: GitLab does not support omniauth-ldap's custom filter syntax.
#
+ # Example for getting only specific users:
+ # '(&(objectclass=user)(|(samaccountname=momo)(samaccountname=toto)))'
+ #
user_filter: ''
# LDAP attributes that GitLab will use to create an account for the LDAP user.