<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>openLDAP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/openldap/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 30 Nov 2018 00:53:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install  OpenLDAP on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-openldap-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-openldap-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 30 Nov 2018 00:53:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[openLDAP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial HowTo]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7829</guid>

					<description><![CDATA[<p>OpenLDAP is a free, open-source implementation of the Lightweight Directory Access Protocol (LDAP). With it, you can get a centralized authentication between the members of a network. So, I will show you how to install OpenLDAP on Ubuntu 18.04. Let&#8217;s do it. 0. What you need Installing OpenLDAP on Ubuntu 18.04 is not a really [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-openldap-ubuntu-18-04/">How to install  OpenLDAP on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>OpenLDAP is a free, open-source implementation of the Lightweight Directory Access Protocol (LDAP). With it, you can get a centralized authentication between the members of a network. So, I will show you how to install OpenLDAP on Ubuntu 18.04.</p>
<p>Let&#8217;s do it.</p>
<h1>0. What you need</h1>
<p>Installing <a href="https://www.openldap.org/">OpenLDAP</a> on <a href="https://www.osradar.com/how-to-install-ubuntu-18-04-lts/">Ubuntu</a> 18.04 is not a really complicated matter, however, it is necessary to have a basic knowledge about the use of the terminal.</p>
<p>Also, your user needs to be able to execute commands with sudo because some commands require root.</p>
<p>With this in mind, you can start the installation without problems.</p>
<h1>1. Upgrade the system</h1>
<p>In the first place, you need to upgrade the system. It is recommended to get the latest security patches on your system.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt upgrade</pre>
<figure id="attachment_7830" aria-describedby="caption-attachment-7830" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7830" src="https://www.osradar.com/wp-content/uploads/2018/11/1-24.png" alt="1.- Upgrading the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-24.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/1-24-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-24-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-24-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-24-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/1-24-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7830" class="wp-caption-text">1.- Upgrading the system</figcaption></figure>
<p>Now, you can continue.</p>
<h1>2. Set the hostname</h1>
<p>The first step is to define the hostname. Run this command:</p>
<pre class="">:~$ sudo hostnamectl set-hostname ldap.osradar.local</pre>
<p>And add it to your <code>/etc/hosts</code> file</p>
<pre class="">:~$ echo "192.168.250.6 ldap.osradar.com" | sudo tee -a /etc/hosts</pre>
<figure id="attachment_7835" aria-describedby="caption-attachment-7835" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7835" src="https://www.osradar.com/wp-content/uploads/2018/11/1-2-1.png" alt="2.- Setting the hostname" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-2-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7835" class="wp-caption-text">2.- Setting the hostname</figcaption></figure>
<h1>3. Install OpenLDAP</h1>
<p>A great advantage of OpenLDAP is that its packages are in the official Ubuntu repositories, which makes installation easy. Just write the following.</p>
<pre class="">:~$ sudo apt install slapd ldap-utils</pre>
<figure id="attachment_7831" aria-describedby="caption-attachment-7831" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7831" src="https://www.osradar.com/wp-content/uploads/2018/11/2-23.png" alt="2.- Install OpenLDAP from the Ubuntu main repository" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2-23.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/2-23-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2-23-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/2-23-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/2-23-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/2-23-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7831" class="wp-caption-text">3.- Install OpenLDAP from the Ubuntu main repository</figcaption></figure>
<p>After downloading the package and during installation you will have to define and confirm the root password.</p>
<figure id="attachment_7832" aria-describedby="caption-attachment-7832" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7832" src="https://www.osradar.com/wp-content/uploads/2018/11/3-22.png" alt="3.- Setting the root password" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3-22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/3-22-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3-22-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3-22-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3-22-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/3-22-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7832" class="wp-caption-text">4.- Setting the root password</figcaption></figure>
<p>If you wish to verify that the installation has been carried out effectively. You can use the following command:</p>
<pre class="">:~$ sudo slapcat</pre>
<figure id="attachment_7833" aria-describedby="caption-attachment-7833" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7833" src="https://www.osradar.com/wp-content/uploads/2018/11/4-24.png" alt="4.- Checking the installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4-24.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/4-24-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4-24-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4-24-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/4-24-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/4-24-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7833" class="wp-caption-text">5.- Checking the installation</figcaption></figure>
<p>As you can see in the image above, OpenLDAP is installed correctly.</p>
<h1>4. Add base dn for Users and Groups</h1>
<p>it is now necessary to configure OpenLDAP. To do this, the first step is to add to base DN for users and groups.</p>
<p>Create a file called <code>basedn.ldif</code> in your home folder or wherever you want.</p>
<pre class="">:~$ nano basedn.ldif</pre>
<figure id="attachment_7834" aria-describedby="caption-attachment-7834" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7834" src="https://www.osradar.com/wp-content/uploads/2018/11/5-22.png" alt="5.- Creating dn file for OpenLDAP user and group" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/5-22-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-22-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-22-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/5-22-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/5-22-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7834" class="wp-caption-text">5.- Creating dn file for OpenLDAP user and group</figcaption></figure>
<p>And add the following:</p>
<pre>dn: ou=people,dc=example,dc=com
objectClass: organizationalUnit
ou: people

dn: ou=groups,dc=example,dc=com
objectClass: organizationalUnit
ou: groups
</pre>
<p>Of course, replace <code>example</code> and <code>com</code>, for your domain properties.</p>
<p>Next, add the configuration file. Run:</p>
<pre class="">:~$ ldapadd -x -D cn=admin,dc=osradar,dc=local -W -f basedn.ldif</pre>
<figure id="attachment_7837" aria-describedby="caption-attachment-7837" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7837" src="https://www.osradar.com/wp-content/uploads/2018/11/6-19.png" alt="6.- Creating the new configuration file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/6-19.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/6-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/6-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/6-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/6-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/6-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7837" class="wp-caption-text">6.- Creating the new configuration file</figcaption></figure>
<p>Next, install phpLDAPadmin.</p>
<h1>5. Install phpLDAPadmin</h1>
<p>In order to manage OpenLDAP in a quick and easy way is that you have to install phpLDAPadmin. Let&#8217;s do it.</p>
<p>First, install some necessary packages. Among them are Apache web server and PHP.</p>
<pre class="">:~$ sudo apt install apache2 php php-cgi libapache2-mod-php php-mbstring php-common php-pear</pre>
<figure id="attachment_7838" aria-describedby="caption-attachment-7838" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7838" src="https://www.osradar.com/wp-content/uploads/2018/11/7-19.png" alt="7.- Installing some required package for phpldapadmin" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/7-19.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/7-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/7-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/7-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/7-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/7-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7838" class="wp-caption-text">7.- Installing some required package for phpLDAPadmin</figcaption></figure>
<p>Next, it is necessary to enable the php7.2-cgi extension. Then, restart Apache service.</p>
<pre class="">:~$ sudo a2enconf php7.2-cgi
:~$ sudo systemctl reload apache2</pre>
<figure id="attachment_7839" aria-describedby="caption-attachment-7839" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7839" src="https://www.osradar.com/wp-content/uploads/2018/11/8-19.png" alt="8.- Enable a necessary php extension" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/8-19.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/8-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/8-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/8-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/8-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/8-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7839" class="wp-caption-text">8.- Enable a necessary PHP extension</figcaption></figure>
<p>Then install phpLDAPadmin.</p>
<pre class="">:~$ sudo apt install phpldapadmin</pre>
<figure id="attachment_7840" aria-describedby="caption-attachment-7840" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7840" src="https://www.osradar.com/wp-content/uploads/2018/11/9-17.png" alt="9.- Installing phpLDAPadmin" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/9-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/9-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/9-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/9-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/9-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/9-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7840" class="wp-caption-text">9.- Installing phpLDAPadmin</figcaption></figure>
<p>The next step is to modify the permissions in the phpLDAPadmin configuration file to receive requests from network members.</p>
<pre class="">:~$ sudo nano /etc/apache2/conf-enabled/phpldapadmin.conf</pre>
<p>And leave it as I show you in the picture.</p>
<figure id="attachment_7841" aria-describedby="caption-attachment-7841" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7841" src="https://www.osradar.com/wp-content/uploads/2018/11/10-14.png" alt="10.- Configuring phpLDAPadmin" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/10-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/10-14-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/10-14-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/10-14-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/10-14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/10-14-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7841" class="wp-caption-text">10.- Configuring phpLDAPadmin</figcaption></figure>
<p>With this, we are simply telling phpLDAPadmin to accept requests from network members.</p>
<p>Then, restart Apache.</p>
<pre class="">:~$ sudo systemctl restart apache2</pre>
<p>If you use <code>ufw</code>, you must open ports 80 and 443.</p>
<pre class="">:~$ sudo ufw allow 80
:~$ sudo ufw allow 443</pre>
<figure id="attachment_7842" aria-describedby="caption-attachment-7842" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7842" src="https://www.osradar.com/wp-content/uploads/2018/11/11-9.png" alt="11.- Preparing the firewall" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/11-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/11-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/11-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/11-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/11-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/11-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7842" class="wp-caption-text">11.- Preparing the firewall</figcaption></figure>
<p>Finally, open your favorite web browser and go to <code>http://IP_SERVER_OR_DOMAIN/phpldapadmin</code></p>
<figure id="attachment_7843" aria-describedby="caption-attachment-7843" style="width: 1350px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7843" src="https://www.osradar.com/wp-content/uploads/2018/11/12-7.png" alt="12.- phpLDAPadmin main page" width="1350" height="462" srcset="https://www.osradar.com/wp-content/uploads/2018/11/12-7.png 1350w, https://www.osradar.com/wp-content/uploads/2018/11/12-7-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/12-7-768x263.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/12-7-1024x350.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/12-7-1068x365.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/12-7-1227x420.png 1227w" sizes="(max-width: 1350px) 100vw, 1350px" /><figcaption id="caption-attachment-7843" class="wp-caption-text">12.- phpLDAPadmin main page</figcaption></figure>
<p>Next, log in.</p>
<figure id="attachment_7844" aria-describedby="caption-attachment-7844" style="width: 1350px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7844" src="https://www.osradar.com/wp-content/uploads/2018/11/13-6.png" alt="13.- Add the credentials on phpLDAPadmin" width="1350" height="492" srcset="https://www.osradar.com/wp-content/uploads/2018/11/13-6.png 1350w, https://www.osradar.com/wp-content/uploads/2018/11/13-6-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/13-6-768x280.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/13-6-1024x373.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/13-6-1068x389.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/13-6-1152x420.png 1152w" sizes="(max-width: 1350px) 100vw, 1350px" /><figcaption id="caption-attachment-7844" class="wp-caption-text">13.- Add the credentials on phpLDAPadmin</figcaption></figure>
<p>Finally, you will see this.</p>
<figure id="attachment_7845" aria-describedby="caption-attachment-7845" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7845" src="https://www.osradar.com/wp-content/uploads/2018/11/14-6.png" alt="14.- phpLDAPadmin installed" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/14-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/14-6-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/14-6-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/14-6-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/14-6-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/14-6-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/14-6-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7845" class="wp-caption-text">14.- phpLDAPadmin installed</figcaption></figure>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>As you can see OpenLDAP is easy to install and configure in Ubuntu, it just remains that you can configure it to your needs.</p>
<p>Please share this article with friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-openldap-ubuntu-18-04/">How to install  OpenLDAP on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-openldap-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install OpenLDAP on CentOS 7</title>
		<link>https://www.osradar.com/how-to-install-openldap-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-openldap-on-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 03 Aug 2018 07:36:51 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[openLDAP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4995</guid>

					<description><![CDATA[<p>We like CentOS very much to be a server operating system, I think we have made that clear; it is a great system, easy to use and maintain, and you can install many specific tools to manage services within a network server. It is also compatible with the RHEL software and repository, providing a good [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-openldap-on-centos-7/">How to install OpenLDAP on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>We like CentOS very much</strong> to be a server operating system, I think we have made that clear; it is a great system, easy to use and maintain, and you can install many specific tools to manage services within a network server. It is also compatible with the RHEL software and repository, providing a good number of applications available.</p>
<p>One of those important applications that can be installed in <strong>CentOS 7</strong>, oriented to server management is <strong>OpenLDAP</strong> which is an open <strong>LDAP</strong> implementation that allows us to access an orderly and distributed directory service to search for diverse information in a network environment, ie a centralized way to store contact information in an organization.</p>
<p>OpenLDAP has four main components:</p>
<ul>
<li>slapd: autonomous LDAP daemon.</li>
<li>slurpd: standalone LDAP update replication daemon.</li>
<li>LDAP protocol support library routines</li>
<li>Utilities tools and customers.</li>
</ul>
<p>In this tutorial we will install OpenLDAP in cents 7.</p>
<h2>Let&#8217;s get to work</h2>
<h3>1.- Upgrading the system and installing openldap packages</h3>
<p>As always, the first thing to do is to update the system.</p>
<pre class="">:~# yum update</pre>
<figure id="attachment_5109" aria-describedby="caption-attachment-5109" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5109" src="https://www.osradar.com/wp-content/uploads/2018/08/1.png" alt="1.- Upgrading the system" width="1366" height="736" srcset="https://www.osradar.com/wp-content/uploads/2018/08/1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/1-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/1-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/1-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/1-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/1-1068x575.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/1-780x420.png 780w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5109" class="wp-caption-text">1.- Upgrading the system</figcaption></figure>
<p>Now we proceed to install the OpenLDAP packages.</p>
<pre class="">:~# yum install openldap compat-openldap openldap-clients openldap-servers openldap-servers-sql openldap-devel</pre>
<figure id="attachment_5110" aria-describedby="caption-attachment-5110" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5110" src="https://www.osradar.com/wp-content/uploads/2018/08/2.png" alt="2.- Installing openldap packages" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/2.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/2-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/2-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/2-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/2-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/2-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/2-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5110" class="wp-caption-text">2.- Installing openldap packages</figcaption></figure>
<p>Once the packages have been installed, we must enable and initialize the openLDAP service.</p>
<pre class="">:~# systemctl enable slapd
:~# systemctl start slapd</pre>
<figure id="attachment_5111" aria-describedby="caption-attachment-5111" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5111" src="https://www.osradar.com/wp-content/uploads/2018/08/3.png" alt="3.- enabling slapd" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/3.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/3-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/3-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/3-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/3-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/3-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/3-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5111" class="wp-caption-text">3.- enabling slapd</figcaption></figure>
<h3>2.- Configuring openLDAP server</h3>
<p>First we must generate the OpenLDAP root password. That&#8217;s why we write:</p>
<pre class="">:~# slappasswd -h {SSHA} -s your_password</pre>
<p>and we&#8217;ll get something like this:</p>
<pre class="">:~# {SSHA}XKrTsGmjsV0Rw1lZzLaOr7pqvZRrbv8A</pre>
<p>Next, create the openLDAP configuration file so that it can work correctly. We write:</p>
<pre class="">:~# nano conf.ldif</pre>
<p>And we place the following content:</p>
<pre class="">dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcSuffix
olcSuffix: dc=osradar,dc=local

dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=angelo,dc=osradar,dc=local

dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootPW
olcRootPW: {SSHA}XKrTsGmjsV0Rw1lZzLaOr7pqvZRrbv8A

</pre>
<p>From that file you must modify these three parameters at your convenience:</p>
<ul>
<li>olcSuffix: Basically the suffix is your hostname. For your reference, in this tutorial the hostname is <strong>osradar.local</strong></li>
<li>olcRootDN: This refers to the openLDAP administrator user.</li>
<li>olcRootPW: Here is the password generated above. Put yours up.</li>
</ul>
<figure id="attachment_5113" aria-describedby="caption-attachment-5113" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5113" src="https://www.osradar.com/wp-content/uploads/2018/08/4.png" alt="4.- Editing conf file" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/4.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/4-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/4-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/4-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/4-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/4-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/4-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5113" class="wp-caption-text">4.- Editing conf file</figcaption></figure>
<p>when we finish editing the file, we proceed to &#8220;upload&#8221; the configuration created to openLDAP with ldapmodify.</p>
<pre class="">:~# ldapmodify -Y EXTERNAL -H ldapi:/// -f conf.ldif</pre>
<figure id="attachment_5114" aria-describedby="caption-attachment-5114" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5114" src="https://www.osradar.com/wp-content/uploads/2018/08/5.png" alt="5.- ldapmodify" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/5.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/5-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/5-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/5-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/5-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/5-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/5-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5114" class="wp-caption-text">5.- ldapmodify</figcaption></figure>
<h3>3.- Configuring the openLDAP Database</h3>
<p>Now we proceed to copy the example database and grant it permissions.</p>
<pre class="">:~# cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
:~# chown ldap:ldap /var/lib/ldap/*</pre>
<figure id="attachment_5115" aria-describedby="caption-attachment-5115" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5115" src="https://www.osradar.com/wp-content/uploads/2018/08/6.png" alt="6.- Configuring database openldap" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/6-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/6-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/6-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/6-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/6-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/6-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5115" class="wp-caption-text">6.- Configuring database openldap</figcaption></figure>
<p>And we add the rest of the schemas.</p>
<pre class="">:~# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif
:~# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif
:~# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif</pre>
<p>Now we create our file named base.ldif</p>
<pre class="">:~# nano base.ldif</pre>
<p>And within this we add the following:</p>
<pre class="">dn: dc=osradar,dc=local
dc: osradar
objectClass: top
objectClass: domain

dn: cn=angelo ,dc=osradar,dc=local
objectClass: organizationalRole
cn: angelo
description: LDAP Manager

dn: ou=users,dc=osradar,dc=local
objectClass: organizationalUnit
ou: Users

dn: ou=Group,dc=osradar,dc=local
objectClass: organizationalUnit
ou: Group</pre>
<figure id="attachment_5116" aria-describedby="caption-attachment-5116" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5116" src="https://www.osradar.com/wp-content/uploads/2018/08/7.png" alt="7.- Creating base file" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/7.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/7-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/7-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/7-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/7-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/7-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/7-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5116" class="wp-caption-text">7.- Creating base file</figcaption></figure>
<p>Now we must write the command to create the directory structure. In doing so we will be asked for the openldap password.</p>
<pre class="">:~# ldapadd -x -W -D "cn=angelo,dc=osradar,dc=local" -f base.ldif</pre>
<p>Of course, change the parameters to your own.</p>
<figure id="attachment_5117" aria-describedby="caption-attachment-5117" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5117" src="https://www.osradar.com/wp-content/uploads/2018/08/8.png" alt="8.- building directory structure" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/8.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/8-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/8-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/8-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/8-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/8-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/8-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5117" class="wp-caption-text">8.- building directory structure</figcaption></figure>
<h3>4.-Creating openLDAP User</h3>
<p>now we proceed to create a user for openLDAP. An easy way to do this is to create a file for the new user, I&#8217;ll call it newuser.ldif.</p>
<pre class="">:~# nano newuser.ldif</pre>
<p>And in it we will copy the following content:</p>
<pre class="">dn: uid=user,ou=users,dc=osradar,dc=local
objectClass: top
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
cn: user
uid: user
uidNumber: 9999
gidNumber: 100
homeDirectory: /home/user
loginShell: /bin/bash
gecos: user
userPassword: {crypt}x
shadowLastChange: 17058
shadowMin: 0
shadowMax: 99999
shadowWarning: 7</pre>
<p>change what you have to change.</p>
<figure id="attachment_5119" aria-describedby="caption-attachment-5119" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5119" src="https://www.osradar.com/wp-content/uploads/2018/08/9-1.png" alt="9.- Creating new user" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/9-1.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/9-1-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/9-1-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/9-1-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/9-1-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/9-1-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/9-1-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5119" class="wp-caption-text">9.- Creating new user</figcaption></figure>
<p>Now with the ldapadd command we proceed to create the new user.</p>
<pre class="">:~# ldapadd -x -W -D "cn=angelo,dc=osradar,dc=local" -f newuser.ldif</pre>
<figure id="attachment_5121" aria-describedby="caption-attachment-5121" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5121" src="https://www.osradar.com/wp-content/uploads/2018/08/10.png" alt="10.- Adding the new user" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/10.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/10-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/10-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/10-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/10-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/10-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/10-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5121" class="wp-caption-text">10.- Adding the new user</figcaption></figure>
<p>Now we are going to give the new user a password.</p>
<pre class="">:~# ldappasswd -s pass321 -W -D "cn=angelo,dc=osradar,dc=local" -x "uid=user,ou=users,dc=osradar,dc=local"</pre>
<figure id="attachment_5122" aria-describedby="caption-attachment-5122" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5122" src="https://www.osradar.com/wp-content/uploads/2018/08/11.png" alt="11.- Setting password to new user" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/11.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/11-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/11-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/11-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/11-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/11-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/11-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5122" class="wp-caption-text">11.- Setting password to new user</figcaption></figure>
<h3>5.- Finals configurations</h3>
<p>We then proceed to add the rules in the firewall so that openLDAP runs smoothly.</p>
<pre class="">:~# firewall-cmd --permanent --add-service=ldap
:~# firewall-cmd --reload</pre>
<figure id="attachment_5123" aria-describedby="caption-attachment-5123" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5123" src="https://www.osradar.com/wp-content/uploads/2018/08/12.png" alt="12.- Enabling openldap at firewall" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/12.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/12-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/12-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/12-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/12-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/12-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/12-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5123" class="wp-caption-text">12.- Enabling openldap at firewall</figcaption></figure>
<h3>6.- Testing the server</h3>
<p>We verify that everything is in order:</p>
<pre class="">:~# ldapsearch -x cn=user -b dc=osradar,dc=local</pre>
<p>If the terminal displays the user information, then everything went well.</p>
<figure id="attachment_5124" aria-describedby="caption-attachment-5124" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5124" src="https://www.osradar.com/wp-content/uploads/2018/08/77.png" alt="12 .- Testing the installations" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/08/77.png 1368w, https://www.osradar.com/wp-content/uploads/2018/08/77-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/77-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/77-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/77-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/77-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/77-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5124" class="wp-caption-text">12 .- Testing the installations</figcaption></figure>
<p>And that&#8217;s it, we have our OpenLDAP server up and running. We would only have to go and configure each client so that it can be logged into the server. This will depend on each GNU/LINUX distribution the client has.</p>
<p>Please share this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-openldap-on-centos-7/">How to install OpenLDAP on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-openldap-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install OpenLDAP Server on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-openldap-server-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-openldap-server-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Mon, 18 Jun 2018 05:33:44 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[openLDAP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4154</guid>

					<description><![CDATA[<p>OpenLDAP is a free, open source implementation of the Lightweight Directory Access Protocol (LDAP) developed by the OpenLDAP project. Released under its own OpenLDAP Public License. LDAP is a platform-independent communication protocol. To simplify the administration of the system users, it is ideal to use a database accessible via LDAP. Centrally storing user accounts in [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-openldap-server-on-ubuntu-18-04/">How to Install OpenLDAP Server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>OpenLDAP</strong> is a free, open source implementation of the Lightweight Directory Access Protocol (LDAP) developed by the OpenLDAP project. Released under its own OpenLDAP Public License. LDAP is a <strong>platform-independent communication protocol.</strong></p>
<p>To simplify the administration of the system users, it is ideal to use a database accessible via LDAP. Centrally storing user accounts in a single repository makes it easy to create, modify, and delete user accounts and user groups</p>
<p>Let&#8217;s get to work!!!</p>
<h2>Installing OpenLDAP server</h2>
<p>To install the openLDAP server we only need to execute the following command with root privileges:</p>
<p><strong>             sudo apt install slapd ldap-utils</strong></p>
<figure id="attachment_4155" aria-describedby="caption-attachment-4155" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4155" src="https://www.osradar.com/wp-content/uploads/2018/06/1-13.png" alt="1.-Installing openLDAP" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/1-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/1-13-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/1-13-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/1-13-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/1-13-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/1-13-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/1-13-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4155" class="wp-caption-text">1.-Installing openLDAP</figcaption></figure>
<p>When the installation is complete, you have to define the administrator password.</p>
<figure id="attachment_4156" aria-describedby="caption-attachment-4156" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4156" src="https://www.osradar.com/wp-content/uploads/2018/06/2-14.png" alt="2.-Admin Password" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/2-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/2-14-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/2-14-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/2-14-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/2-14-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/2-14-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/2-14-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4156" class="wp-caption-text">2.-Admin Password</figcaption></figure>
<p>We will check the status of the service to see if the installation was successful.</p>
<p><strong>sudo systemctl status slapd.service</strong></p>
<figure id="attachment_4157" aria-describedby="caption-attachment-4157" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4157" src="https://www.osradar.com/wp-content/uploads/2018/06/3-14.png" alt="3.- Checking status openLDAP" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/3-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/3-14-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/3-14-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/3-14-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/3-14-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/3-14-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/3-14-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4157" class="wp-caption-text">3.- Checking status openLDAP</figcaption></figure>
<p>In the previous image we see that the installation was successful and that the service is running.</p>
<h2>2.-Basic configuration of the service</h2>
<p>When the installation of the packages is finished it does not do so with an appropriate configuration, so we must use dpkg to do it, at least in a basic way.</p>
<p><strong>            sudo dpkg-reconfigure slapd</strong></p>
<figure id="attachment_4158" aria-describedby="caption-attachment-4158" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4158" src="https://www.osradar.com/wp-content/uploads/2018/06/4-12.png" alt="4.- Reconfiguring slapd" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/4-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/4-12-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/4-12-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/4-12-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/4-12-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/4-12-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/4-12-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4158" class="wp-caption-text">4.- Reconfiguring slapd</figcaption></figure>
<p>When you run the above command, you will be asked certain questions. The first is whether we want to skip the LDAP server configuration. <strong>We say NO</strong>.</p>
<figure id="attachment_4159" aria-describedby="caption-attachment-4159" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4159" src="https://www.osradar.com/wp-content/uploads/2018/06/6-13.png" alt="6.- Configuring LDAP" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/6-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/6-13-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/6-13-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/6-13-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/6-13-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/6-13-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/6-13-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4159" class="wp-caption-text">5.- Configuring LDAP</figcaption></figure>
<p>The next step is to enter your domain.</p>
<figure id="attachment_4160" aria-describedby="caption-attachment-4160" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4160" src="https://www.osradar.com/wp-content/uploads/2018/06/7-12.png" alt="7.- Entering the domain" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/7-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/7-12-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/7-12-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/7-12-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/7-12-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/7-12-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/7-12-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4160" class="wp-caption-text">6.- Entering the domain</figcaption></figure>
<p>You will then ask us for the name of our organization</p>
<figure id="attachment_4161" aria-describedby="caption-attachment-4161" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4161" src="https://www.osradar.com/wp-content/uploads/2018/06/8-10.png" alt="8.- Entering organization name" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/8-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/8-10-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/8-10-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/8-10-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/8-10-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/8-10-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/8-10-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4161" class="wp-caption-text">7.- Entering organization name</figcaption></figure>
<p>After that, you will be asked to set the admin password again.</p>
<figure id="attachment_4162" aria-describedby="caption-attachment-4162" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4162" src="https://www.osradar.com/wp-content/uploads/2018/06/9-8.png" alt="8.- admin password" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/9-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/9-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/9-8-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/9-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/9-8-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/9-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/9-8-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4162" class="wp-caption-text">8.- admin password</figcaption></figure>
<p>The next step is to define the database backend. <strong>We will choose</strong> <strong>MDB</strong> because it is the most efficient in performance and memory consumption.</p>
<figure id="attachment_4163" aria-describedby="caption-attachment-4163" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4163" src="https://www.osradar.com/wp-content/uploads/2018/06/10-7.png" alt="9.- Database backend " width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/10-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/10-7-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/10-7-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/10-7-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/10-7-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/10-7-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/10-7-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4163" class="wp-caption-text">9.- Database backend</figcaption></figure>
<p>Do you want the database to be removed when slapd is purged? We say <strong>No</strong>.</p>
<figure id="attachment_4164" aria-describedby="caption-attachment-4164" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4164" src="https://www.osradar.com/wp-content/uploads/2018/06/11-8.png" alt="10.- configuring ldpa" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/11-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/11-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/11-8-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/11-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/11-8-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/11-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/11-8-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4164" class="wp-caption-text">10.- configuring ldpa</figcaption></figure>
<p>Move old database? <strong>we say Yes</strong></p>
<figure id="attachment_4165" aria-describedby="caption-attachment-4165" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4165" src="https://www.osradar.com/wp-content/uploads/2018/06/12-7.png" alt="11.- move old database" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/12-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/12-7-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/12-7-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/12-7-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/12-7-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/12-7-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/12-7-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4165" class="wp-caption-text">11.- move old database</figcaption></figure>
<p>We finally got out of the configuration script</p>
<figure id="attachment_4166" aria-describedby="caption-attachment-4166" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4166" src="https://www.osradar.com/wp-content/uploads/2018/06/13-3.png" alt="12.- ldap configured" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/13-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/13-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/13-3-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/13-3-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/13-3-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/13-3-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/13-3-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4166" class="wp-caption-text">12.- ldap configured</figcaption></figure>
<h2>3.-Define Configuration in an LDAP Client</h2>
<p>The configuration file for all OpenLDAP clients is ldap.conf located in /etc/ldap. We need to edit it.</p>
<p><strong>            sudo nano /etc/ldap/ldap.conf</strong></p>
<p>When we open the file we&#8217;ll see something like this:</p>
<figure id="attachment_4168" aria-describedby="caption-attachment-4168" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4168" src="https://www.osradar.com/wp-content/uploads/2018/06/14-3.png" alt="13.- editing file ldap.conf" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/14-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/14-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/14-3-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/14-3-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/14-3-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/14-3-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/14-3-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4168" class="wp-caption-text">13.- editing file ldap.conf</figcaption></figure>
<p>In this file we only need to specify two things: BASE and URI. BASE is where our DNS is placed, following this formula:</p>
<p>BASE dc=YOUR_DOMAIN,dc=com</p>
<p>Or if you have, a subdomain:</p>
<p>BASE dc=SUB_DOMAIN,dc=YOUR_DOMAIN,dc=com</p>
<p>While URI is the address where the LDAP server is located:</p>
<p>If the server is hosted on the same machine as the client, then we must set the URI to ldap:localhost/</p>
<figure id="attachment_4169" aria-describedby="caption-attachment-4169" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4169" src="https://www.osradar.com/wp-content/uploads/2018/06/15-4.png" alt="14.-Editing file ldap.conf" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/15-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/15-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/15-4-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/15-4-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/15-4-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/15-4-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/15-4-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4169" class="wp-caption-text">14.-Editing file ldap.conf</figcaption></figure>
<p>Let&#8217;s check that everything is OK, with the execution of the next command:</p>
<p><strong>            ldapsearch -x</strong></p>
<figure id="attachment_4170" aria-describedby="caption-attachment-4170" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4170" src="https://www.osradar.com/wp-content/uploads/2018/06/16-4.png" alt="15.- Testing ldap" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/16-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/16-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/16-4-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/16-4-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/16-4-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/16-4-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/16-4-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4170" class="wp-caption-text">15.- Testing ldap</figcaption></figure>
<p>The previous image shows the output per terminal of the execution of the ldapsearch command. <strong>Seeing 0 success means that everything is in order</strong>.</p>
<h2>Optional: Install phpLDAPAdmin</h2>
<p>It is possible to manage ldap from the command line, but some people prefer a graphical application. PhpLDAPAdmin is a web application used to manage an LDAP server in a simple and intuitive way.</p>
<p><strong>            sudo apt install phpldapadmin</strong></p>
<p><em>note:phpldapadmin requires a web server to run since it is a browser-based application, if your ubuntu does not have a web server, then the above command will install apache as a dependency.</em></p>
<figure id="attachment_4171" aria-describedby="caption-attachment-4171" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4171" src="https://www.osradar.com/wp-content/uploads/2018/06/17-3.png" alt="16.- installing phpldapadmin" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/17-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/17-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/17-3-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/17-3-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/17-3-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/17-3-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/17-3-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4171" class="wp-caption-text">16.- installing phpldapadmin</figcaption></figure>
<p>After installation, we should be able to run phpldapadmin from the browser, but first we&#8217;ll modify some things from the configuration files.</p>
<p><strong>            sudo nano /etc/phpldapadmin/config.php</strong></p>
<p>First we will tell phpldapadmin that we will connect from localhost. We&#8217;ll go to line 293. Press CTR + _ and write the line number.</p>
<figure id="attachment_4172" aria-describedby="caption-attachment-4172" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4172" src="https://www.osradar.com/wp-content/uploads/2018/06/18-3.png" alt="17.-Allowing localhost connection" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/18-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/18-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/18-3-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/18-3-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/18-3-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/18-3-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/18-3-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4172" class="wp-caption-text">17.-Allowing localhost connection</figcaption></figure>
<p>Then we go to line 296 and remove the comment to allow the connection through port 389.</p>
<figure id="attachment_4173" aria-describedby="caption-attachment-4173" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4173" src="https://www.osradar.com/wp-content/uploads/2018/06/19-4.png" alt="18.- Setting the port" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/19-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/19-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/19-4-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/19-4-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/19-4-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/19-4-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/19-4-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4173" class="wp-caption-text">18.- Setting the port</figcaption></figure>
<p>Next we will go to line 300 where we will find :</p>
<p><strong>$servers-&gt;setValue(&#8216;server&#8217;,&#8217;base&#8217;,array(&#8216;dc=example,dc=com&#8217;))</strong></p>
<p>And the substitutes for the following:</p>
<p><strong>$servers-&gt;setValue(&#8216;server&#8217;,&#8217;base&#8217;,array());</strong></p>
<p>This is in order for phpldapadmin to recognize the domain arrangement we use in the openLDAP configuration.</p>
<figure id="attachment_4174" aria-describedby="caption-attachment-4174" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4174" src="https://www.osradar.com/wp-content/uploads/2018/06/20-4.png" alt="19.- Changing the array" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/20-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/20-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/20-4-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/20-4-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/20-4-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/20-4-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/20-4-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4174" class="wp-caption-text">19.- Changing the array</figcaption></figure>
<p>On line 335 we proceed to remove the comment and enable TLS.</p>
<figure id="attachment_4175" aria-describedby="caption-attachment-4175" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4175" src="https://www.osradar.com/wp-content/uploads/2018/06/21-4.png" alt="20.-Enabling TLS" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/21-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/21-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/21-4-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/21-4-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/21-4-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/21-4-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/21-4-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4175" class="wp-caption-text">20.-Enabling TLS</figcaption></figure>
<p>Finally we disable the anonymous logging. Let&#8217;s go to line 453.</p>
<figure id="attachment_4176" aria-describedby="caption-attachment-4176" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4176" src="https://www.osradar.com/wp-content/uploads/2018/06/22-3.png" alt="21.- disabling anonymous logging" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/06/22-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/22-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/22-3-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/22-3-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/22-3-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/22-3-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/22-3-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4176" class="wp-caption-text">21.- disabling anonymous logging</figcaption></figure>
<p>We finally got out and finished setting up.</p>
<p>And with this we can access from our browser to phpldapadmin</p>
<figure id="attachment_4177" aria-describedby="caption-attachment-4177" style="width: 1360px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4177" src="https://www.osradar.com/wp-content/uploads/2018/06/23-1.png" alt="22.- phpldapadmin" width="1360" height="513" srcset="https://www.osradar.com/wp-content/uploads/2018/06/23-1.png 1360w, https://www.osradar.com/wp-content/uploads/2018/06/23-1-300x113.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/23-1-768x290.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/23-1-1024x386.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/23-1-696x263.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/23-1-1068x403.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/23-1-1113x420.png 1113w" sizes="(max-width: 1360px) 100vw, 1360px" /><figcaption id="caption-attachment-4177" class="wp-caption-text">22.- phpldapadmin</figcaption></figure>
<p>We enter our credentials and log in</p>
<figure id="attachment_4179" aria-describedby="caption-attachment-4179" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4179" src="https://www.osradar.com/wp-content/uploads/2018/06/24-2.png" alt="23.- Entering credentials" width="1364" height="488" srcset="https://www.osradar.com/wp-content/uploads/2018/06/24-2.png 1364w, https://www.osradar.com/wp-content/uploads/2018/06/24-2-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/24-2-768x275.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/24-2-1024x366.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/24-2-696x249.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/24-2-1068x382.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/24-2-1174x420.png 1174w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-4179" class="wp-caption-text">23.- Entering credentials</figcaption></figure>
<p>And we will see the following</p>
<figure id="attachment_4181" aria-describedby="caption-attachment-4181" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4181" src="https://www.osradar.com/wp-content/uploads/2018/06/26.png" alt="24.- phpldapadmin" width="1366" height="630" srcset="https://www.osradar.com/wp-content/uploads/2018/06/26.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/26-300x138.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/26-768x354.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/26-1024x472.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/26-696x321.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/26-1068x493.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/26-911x420.png 911w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4181" class="wp-caption-text">24.- phpldapadmin</figcaption></figure>
<p>And this is it. We have installed and configured openLDAP. Now it&#8217;s time to take advantage of this fabulous application.</p>
<p>Feel free to share this article with your friends through social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-openldap-server-on-ubuntu-18-04/">How to Install OpenLDAP Server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-openldap-server-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
