Commit ccdf32bcafdfb140441a5df9bba7ed9e493eeb2a

Authored by Marin Jankovski
1 parent 0d9abc1a
Exists in master

LDAP sync_time option.

files/gitlab-cookbooks/gitlab/attributes/default.rb
@@ -96,6 +96,7 @@ default['gitlab']['gitlab-rails']['ldap_user_filter'] = nil @@ -96,6 +96,7 @@ default['gitlab']['gitlab-rails']['ldap_user_filter'] = nil
96 default['gitlab']['gitlab-rails']['ldap_group_base'] = nil 96 default['gitlab']['gitlab-rails']['ldap_group_base'] = nil
97 default['gitlab']['gitlab-rails']['ldap_admin_group'] = nil 97 default['gitlab']['gitlab-rails']['ldap_admin_group'] = nil
98 default['gitlab']['gitlab-rails']['ldap_sync_ssh_keys'] = nil 98 default['gitlab']['gitlab-rails']['ldap_sync_ssh_keys'] = nil
  99 +default['gitlab']['gitlab-rails']['ldap_sync_time'] = nil
99 default['gitlab']['gitlab-rails']['omniauth_enabled'] = false 100 default['gitlab']['gitlab-rails']['omniauth_enabled'] = false
100 default['gitlab']['gitlab-rails']['omniauth_allow_single_sign_on'] = nil 101 default['gitlab']['gitlab-rails']['omniauth_allow_single_sign_on'] = nil
101 default['gitlab']['gitlab-rails']['omniauth_block_auto_created_users'] = nil 102 default['gitlab']['gitlab-rails']['omniauth_block_auto_created_users'] = nil
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
@@ -133,6 +133,15 @@ production: &base @@ -133,6 +133,15 @@ production: &base
133 method: <%= single_quote(@ldap_method) %> # "tls" or "ssl" or "plain" 133 method: <%= single_quote(@ldap_method) %> # "tls" or "ssl" or "plain"
134 bind_dn: <%= single_quote(@ldap_bind_dn) %> 134 bind_dn: <%= single_quote(@ldap_bind_dn) %>
135 password: <%= single_quote(@ldap_password) %> 135 password: <%= single_quote(@ldap_password) %>
  136 +
  137 + # This setting controls the amount of time between LDAP permission checks for each user.
  138 + # After this time has expired for a given user, their next interaction with GitLab (a click in the web UI, a git pull etc.) will be slower because the LDAP permission check is being performed.
  139 + # How much slower depends on your LDAP setup, but it is not uncommon for this check to add seconds of waiting time.
  140 + # The default value is to have a 'slow click' once every 3600 seconds, i.e. once per hour.
  141 + #
  142 + # Warning: if you set this value too low, every click in GitLab will be a 'slow click' for all of your LDAP users.
  143 + sync_time: <%= @ldap_sync_time %>
  144 +
136 # If allow_username_or_email_login is enabled, GitLab will ignore everything 145 # If allow_username_or_email_login is enabled, GitLab will ignore everything
137 # after the first '@' in the LDAP username submitted by the user on login. 146 # after the first '@' in the LDAP username submitted by the user on login.
138 # 147 #