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 ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.