Checking LDAP problem in 7.4
Created by: k-shym
After updating a config gitlab.yml(ce 7.4) error occurred:
** Execute gitlab:ldap:check
Checking LDAP ...
LDAP users with access to your GitLab server (only showing the first 100 results)
rake aborted!
ArgumentError: host,port,method,uid or filter,base MUST be provided
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab_omniauth-ldap-1.1.0/lib/omniauth-ldap/adaptor.rb:38:in `validate'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/gitlab_omniauth-ldap-1.1.0/lib/omniauth-ldap/adaptor.rb:41:in `initialize'
Added host, port, method, uid, base as in the old config, and the problem was resolved:
## LDAP settings
# You can inspect a sample of the LDAP users with login access by running:
# bundle exec rake gitlab:ldap:check RAILS_ENV=production
ldap:
enabled: true
host: 'ldap.ooonet.ru'
port: 389
uid: 'uid'
method: 'plain'
base: 'ou=users,dc=ooonet,dc=ru'
servers:
main: # 'main' is the GitLab 'provider ID' of this LDAP server
## label
#
# A human-friendly name for your LDAP server. It is OK to change the label later,
# for instance if you find out it is too large to fit on the web page.
#
# Example: 'Paris' or 'Acme, Ltd.'
label: 'LDAP'
host: 'ldap.ooonet.ru'
port: 389
uid: 'uid'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
password: '_the_password_of_the_bind_user'
# 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.
active_directory: false
...
Checking LDAP ...
LDAP users with access to your GitLab server (only showing the first 100 results)
DN: uid=shym,ou=it,ou=technical,ou=users,dc=ooonet,dc=ru uid: ["shym"]
Checking LDAP ... Finished