Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gitlab Cookbook

You're reading from   Gitlab Cookbook Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781783986842
Length 172 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Jeroen van Baarsen Jeroen van Baarsen
Author Profile Icon Jeroen van Baarsen
Jeroen van Baarsen
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction and Installation 2. Explaining Git FREE CHAPTER 3. Managing Users, Groups, and Permissions 4. Issue Tracker and Wiki 5. Maintaining Your GitLab Instance 6. Webhooks, External Services, and the API 7. Using LDAP and OmniAuth Providers 8. GitLab CI A. Tips and Tricks Index

Configuring GitLab to use LDAP on an Omnibus installation


In order to have your GitLab server know about the LDAP server we created in the previous recipe, we need to configure it. In this recipe, I'll show you how to do this. We will be using GitLab Omnibus in this recipe.

How to do it…

We perform the following steps to configure GitLab to use LDAP:

  1. Log in via SSH to your GitLab server.

  2. Go to the GitLab configuration folder:

    $ cd /etc/gitlab/
    
  3. Open the gitlab.rb configuration file and add the following information:

    gitlab_rails['ldap_enabled'] = true
    gitlab_rails['ldap_host'] = 'your_ldap_server'
    gitlab_rails['ldap_port'] = 389
    gitlab_rails['ldap_uid'] = 'uid'
    gitlab_rails['ldap_method'] = 'plain' # 'ssl' or 'plain'
    gitlab_rails['ldap_bind_dn'] = 'CN=admin,DC=your,DC=ldap,DC=server'
    gitlab_rails['ldap_password'] = 'your_ldap_admin_pass'
    gitlab_rails['ldap_allow_username_or_email_login'] = true
    gitlab_rails['ldap_base'] = 'DC=your,DC=ldap,DC=server'

    It is important that you keep an eye on the ldap_base...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime