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
About the Author
About the Reviewers

Installing a web interface for LDAP

As LDAP is not very easy to manage over the terminal, we will install a web interface so that the process of adding users becomes a bit more bearable. The management tool we will be using is called phpLDAPadmin. Other options to manage your LDAP environment are also available; a full list of options is available at

How to do it…

Let's install the LDAP server:

  1. Perform an SSH into your LDAP server.

  2. Install phpLDAPadmin by running the following command:

    $ sudo apt-get install phpldapadmin
  3. Next, we configure phpLDAPadmin to know about our LDAP server:

    $ sudo vim /etc/phpldapadmin/config.php
  4. Search for $servers->setValue('server','name','My LDAP Server'); and change My LDAP Server to the name you want to show in the tree view.

  5. Search for $servers->setValue('server','host',''); and replace the port number with the domain name your LDAP server is running on. In my case, this is ldap.example...