How to install and configure OpenLDAP on Ubuntu 14.04 Server

June 16, 2013

Table of Contents

LDAP, or lightweight directory access protocol, is a protocol designed to manage and access associated information in a centralized, hierarchical file and directory structure.

It operates like a relational database , but this does not hold true for everything. The hierarchical structure part is the main difference in how the database is related. As it can be used to store any kind of information and is sometimes used as one component of a centralized authentication system. We are going to learn how to install and configure an OpenLDAP server on an Ubuntu 14.04 server.

Install LDAP and Helper Utilities

You first have to install the necessary software, which the whole package needed are available in ubuntu’s default repositories. If this is your first using apt in this session, you will have to refresh your local package index. Then we can install the package we want.

sudo apt-get update

sudo apt-get install slapd ldap-utils

During the process you will be asked to select and confirm an administrator password for LDAP, you will have an opportunity to change it if what you put is not what you wanted.

Reconfigure slapd to Select Better Settings

We then have to reconfigure the defaults that ubuntu installs even though the package was just installed. This is because even though the package has the ability to ask a lot of configuration questions, they are skipped over in the installation process.

sudo dpkg-reconfigure slapd

The following questions are very straight forward:

  • Omit OpenLDAP server configuration? No
  • DNS domain name? you can either select domain name you like even though you don’t have one, bu5t for his guide we will you test.com for our configuration.
  • Organization name? sue what pleases you but for this post we will use example as organization name.
  • Administrator password? Any password you use here will everwrite the previous password.
  • Database backend? HDB
  • Remove the database when slapd is purged? No
  • Move old database? Yes
  • Allow LDAPv2 protocol? No

After this your LDAP should be configured well enough.

Home

Share on
Facebook
Twitter
LinkedIn
Pinterest
More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

Veeam Launches Backup & Replication v7

When it comes to data protection, data replication and data recovery, these are very challenging tasks. Consolidation through virtualization has forced customers to retool automated protection and recovery methodologies in

PowerCLI in the Cloud

Those who are active with PowerCLI sessions at VMWorld, you may still be having in your mind the mention of a vCloud snapin coming soon. It is going to be

Power combined: PowerCLI and OVFTool

Power combined: Combining two good things creates wonders. In this post I will show how to combine the automation abilities of PowerCLI with OVFTool. You first have to get some

🎉 New Year’s Special🎉
50% OFF for Life!

🔥 DELL Bare-metal Dedicated Server in New York

🔹  Intel Gold 80 Cores
🔹  23TB SSD Flash +
🔹1TB NVMe (W RAID)
🔹 1TB DDR4 RAM 
🔹 10Gbps Redundant Uplinks 
🔹 10 IPv4 + IPv6 Addresses Included 

💲 Just $699/month – 50% OFF FOR LIFE! (Reg $1399/month)
🚀 Zero Setup Costs | Flexible OS: Ubuntu, Proxmox, ESXi, Windows, etc.

✅ Reserve Risk-Free! 30-Day Money-Back Guarantee
💡 100% Uptime Assurance – Enterprise-Grade Hardware 

🖥 Ideal for Virtualization, Data-Intensive Apps, & High Traffic Sites

Use coupon code at checkout for the discount to apply FBHEO3023EJFB
⚡ Limited Availability – Don’t Miss Out!

Get 90% Discount

First 3 People gets the Bonus!
Don't Miss Out Our Big Sale

Get 0-90% On All
247Rack Services

247Rack

The Sale Is Until The End Of March