Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8083

Closed
Open
Created Oct 18, 2014 by Administrator@rootOwner

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
Assignee
Assign to
Time tracking