Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Gitlab Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Gitlab Cookbook

Gitlab Cookbook

By : van Baarsen
3.3 (3)
close
close
Gitlab Cookbook

Gitlab Cookbook

3.3 (3)
By: van Baarsen

Overview of this book

This book is aimed at developers and devops that have a GitLab server running, and want to be sure they use it to its full potential. This book will also be useful for people looking for a great Git platform, and learn how to set it up successfully. Some system administrating experience on a UNIX-based system would be useful, but is not required.
Table of Contents (11 chapters)
close
close
10
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...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Gitlab Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon