How to install LDAP on CentOS 7


LDAP stands for Lightweight Directory Access Protocol and, as the name suggests, it’s a standard protocol for accessing and maintaining distributed directory information services over an IP network.
In this tutorial, we’ll install a LDAP server on Centos 7 using 389 Directory Server.

Getting started

First of all, configure FQDN in /etc/hosts.
In that file, put the server’s fully qualified domain name. localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
X.X.X.X yoursever.hostname.lan server

Of course, substitue the last line in this example with your server’s informations.

Configure firewall

As you may know, we need to allow LDAP server’s default ports via firewall in order to access it from a remote system.

firewall-cmd --permanent --add-port=389/tcp
firewall-cmd --permanent --add-port=636/tcp
firewall-cmd --permanent --add-port=9830/tcp

Now, restart firewalld service.

firewall-cmd --reload

Create an user account

Now, create a new user.

useradd ldapuser

and set a password

passwd ldapuser

Restart CentOS.

Install LDAP Server

Note: you need to have EPEL repository.
Install 389 DS server:

yum install 389-ds-base 389-admin

After installing it, it’s time to configure:


At this point, you have installed and configured everything. You can, of course, tweak something, and, for example, enable directory server and directory admin services automatically on every reboot. It’s up to you!

  • I was paid 104 thousand dollars in last 12 months by working from my home and I manage that by w­orking in my own time for 3 or sometimes more hours a day. I followed work model I found online and I am so amazed that i made so much extra income. It’s really newbie friendly a­n­d I’m just so thankful that I found out about it. This is what i did… STATICTAB.COM/astkxim

  • I was paid 104000 bucks last year by working from my house a­­n­­d I was able to do it by wor­king part-time f­­o­­r few h /day. I was following an earning model I was introduced by this web-site i found online and I am so amazed that i was able to make such great money. It’s newbie-friendly a­n­d I’m so blessed that i discovered it. Check out what I do… TWITTER.COM/StinnettMargar1/status/836198198980988928

  • I’ve profited 104,000 thousand dollars in last 12 months by working online from my house a­n­d I did that by w­o­r­k­i­n­g part time f­­o­­r 3 or sometimes more h every day. I’m using a money making model I stumbled upon from this website i found online and I am happy that i made so much extra income. It’s so user friendly a­n­d I am just so grateful that i found it. Here’s what I do… SHORTME.ORG/c0muf

  • M­a­n­y p­e­o­ple wish t­o ha­v­e a awesome earnings at their, bu­t t­he­y don’t have much idea ho­w t­o exactly d­o th­at o­n th­e Int­ernet. Th­ere ar­e a a number of w­ays t­o ea­rn great am­ount of mo­ney, b­ut wh­enev­er p­eopl­e t­ry th­at the­y g­et tr­app­ed in a fraud, And so Now I am sh­aring wi­th yo­u a g­enuine an­d gu­arante­ed w­ay f­or fre­e to ea­rn hug­e am­ount of mon­ey a­t ho­me.I am earning atleast $10000 each month since 12 months.Its a web-based work and also hassle-free to do, Even a little child can do this work and make money online. If you want a happy and wealthy life then you should copy and paste this website in web browser and then follow instructions to get started right now and make Thousands On-line……….. http://b1z­.­org/38E