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
  • #6794

Closed
Open
Created Apr 16, 2014 by Administrator@rootOwner

gitlab with Active Directory

Created by: geeth4sg

I've installed gitlab 6.7.5 on Ubuntu 12.04 and db is mysql.

root@ubuntu:/home/git/gitlab# cat VERSION 6.7.5

root@ubuntu:/home/git/gitlab# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"

I referred the below site and configured gitlab , could login with [email protected]

https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md

I need to integrate the gitlab and Active Directory as we are many users. The below is my config/gitlab.yml file(ldap section)

ldap: enabled: true host: '192.168.0.222' port: 389 base: 'DC=ads,DC=com' uid: 'sAMAccountName' method: 'plain' # "tls" or "ssl" or "plain" bind_dn: 'CN=administrator,DC=ads,DC=com' password: 'p@55w0rd'

root@ubuntu:/home/git/gitlab# bundle exec rake gitlab:ldap:check RAILS_ENV=production Warning You are running as user root, we hope you know what you are doing. Things may work/fail for the wrong reasons. For correct results you should run this as user git.

Checking LDAP ...

LDAP users with access to your GitLab server (only showing the first 100 results)

Checking LDAP ... Finished

I am getting the error "Could not authorize you from LDAP because "Invalid credentials".

production log:

Started POST "/users/auth/ldap/callback" for 127.0.0.1 at 2014-04-16 15:08:18 +0530 Processing by OmniauthCallbacksController#failure as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"bMr7E8XFxKJJtMW+x4xN1WOfwIH5B4VlNXgFrStZdRg=", "username"=>"administrator", "password"=>"[FILTERED]"} Redirected to http://192.168.0.184/users/sign_in

I've referred so many links, but no clue

If changed port number, getting connection reset peer error or could not connect server from 636 port.

I've downgraded the gitlab version to 5.4.0 and tried as I am getting same error. http://blog.dimaj.net/content/updated-howto-enable-ldap-filters-gitlab

I've tried with administrator password of ADS server, still getting same error.

Please any one help me.

ref links: https://raymii.org/s/tutorials/Gitlab_and_Active_Directory_LDAP_Authentication.html https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L126 http://comments.gmane.org/gmane.comp.version-control.gitlab/787 https://github.com/syndicut/omniauth-ldap/commit/b524feb63048591a20de0f70c2d597f0b9d6a156

Assignee
Assign to
Time tracking