Book Image

GitLab Cookbook

By : Jeroen van Baarsen
Book Image

GitLab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up your LDAP server


Before you can link GitLab to your LDAP server, you first have to set up this server. We are going to look at how you can install OpenLDAP on to your Ubuntu machine.

How to do it…

In the following steps, we prepare the server for LDAP:

  1. Log in via SSH to your newly installed server.

  2. Start by updating the available packages:

    sudo apt-get update
    
  3. Install LDAP and some very useful LDAP utilities:

    sudo apt-get install slapd ldap-utils
    

    You will be asked to enter an administrator password.

  4. Now, configure our LDAP server. I assume that you have a domain for your LDAP environment. I'll use ldap.example.com for the rest of this recipe.

  5. Start the configuration tool by running the following command:

    sudo dpkg-reconfigure slapd
    
  6. Under the Omit OpenLDAP server configuration option, select No.

  7. Mention your domain as the DNS domain. In my case, this is ldap.example.com.

  8. Mention your organization name. In my case, this is example.

  9. Under the Database backend to use: option, select HDB.

  10. Under...