<?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>Tutorial HowTo Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tutorial-howto/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 30 Dec 2020 22:19:38 +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 create and Mange File System Access Control List (ACL) with Ubuntu 20.04.</title>
		<link>https://www.osradar.com/how-to-create-and-mange-file-system-access-control-list-acl-with-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-create-and-mange-file-system-access-control-list-acl-with-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[rajneesh]]></dc:creator>
		<pubDate>Wed, 30 Dec 2020 22:19:36 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorial HowTo]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27159</guid>

					<description><![CDATA[<p>Objective: ACL, or Access Control Lists are special permissions. Linux file system by using standard file permission is User, Group, and Other Level. Further, having permissions in form of Write, Read, and Execute. Of course, it will work in maximum situations, but sometimes users can require additional permissions. Here comes the role of ACL. Consider [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-create-and-mange-file-system-access-control-list-acl-with-ubuntu-20-04/">How to create and Mange File System Access Control List (ACL) with Ubuntu 20.04.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3>Objective:</h3>



<p>ACL, or Access Control Lists are special permissions. Linux file system by using standard file permission is User, Group, and Other Level. Further, having permissions in form of Write, Read, and Execute. Of course, it will work in maximum situations, but sometimes users can require additional permissions. Here comes the role of ACL. Consider Bob is from the Sales department, but he wants access to a file from the Finance department. Now, the general file permission structure will not work here. The finance department would no like to expose all files other than the desired one. We can grant special permissions with the help of <strong>ACLs.</strong> Standard permissions can work for a single user or single group, but to add extra users to any file system from a different group, ACL us required.  Today we will learn How to create and Mange File System Access Control List. </p>



<h3>Understand ACL in practical:</h3>



<p>In this scenario, we would be using Ubuntu 20.04 LTS. Before starting let&#8217;s verify whether ACLs are supported at kernel level or not in our OS? </p>



<p><strong>List Kernel level support of ACLs.</strong> </p>



<pre class="wp-block-preformatted">ubnt@ubnt:~$ uname -r
<strong> 5.4.0-53-genericFirst, check kernel version.</strong></pre>



<p>Grep ACL supported file systems lists.</p>



<pre class="wp-block-preformatted">ubnt@ubnt:/boot$ grep ACL /boot/config-$(uname -r)</pre>



<p>Out put</p>



<pre class="wp-block-preformatted">CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_REISERFS_FS_POSIX_ACL=y
 CONFIG_JFS_POSIX_ACL=y
 CONFIG_XFS_POSIX_ACL=y
 CONFIG_BTRFS_FS_POSIX_ACL=y
 CONFIG_F2FS_FS_POSIX_ACL=y
 CONFIG_FS_POSIX_ACL=y
 CONFIG_SHIFT_FS_POSIX_ACL=y
 CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_JFFS2_FS_POSIX_ACL=y
 CONFIG_EROFS_FS_POSIX_ACL=y
 CONFIG_NFS_V3_ACL=y
 CONFIG_NFSD_V2_ACL=y
 CONFIG_NFSD_V3_ACL=y
<strong> CONFIG_NFS_ACL_SUPPORT=m</strong>
 CONFIG_CEPH_FS_POSIX_ACL=y
 CONFIG_9P_FS_POSIX_ACL=y</pre>



<p>Here, <strong>Y</strong> means that ACL is directly compiled into the Linux kernel. Whereas, <strong>m</strong> means a loadable module.</p>



<p><strong>Set default  ACL permissions.</strong> </p>



<p>Let&#8217;s create a directory first. </p>



<pre class="wp-block-preformatted"> root@ubnt:~# mkdir acldemo</pre>



<p> Have a look before setting ACL permissions, only single users permissions are visible. </p>



<pre class="wp-block-preformatted">root@ubnt:~# getfacl acldemo/</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="490" height="202" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-24.png" alt="Get ACL attributes. " class="wp-image-27173" title="" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-24.png 490w, https://www.osradar.com/wp-content/uploads/2020/12/image-24-300x124.png 300w" sizes="(max-width: 490px) 100vw, 490px" /></figure>



<p>Defile ACL rule so that any file created under acldemo will be with no permission at other level.</p>



<pre class="wp-block-preformatted">root@ubnt:~# setfacl -m d:o:--- acldemo</pre>



<p>Where, <strong>-m</strong> stands for modified,<strong> d:</strong> directory, <strong>o:</strong> others,  and no permission to others is defined for <strong>acldemo</strong> direct</p>



<pre class="wp-block-preformatted">root@ubnt:~# getfacl acldemo/</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="581" height="273" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-25.png" alt="ACL changes are made as per requirements. " class="wp-image-27175" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-25.png 581w, https://www.osradar.com/wp-content/uploads/2020/12/image-25-300x141.png 300w" sizes="(max-width: 581px) 100vw, 581px" /></figure>



<pre class="wp-block-preformatted">root@ubnt:~/acldemo# touch test</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="701" height="198" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-27.png" alt="Create a file and see ACL status." class="wp-image-27178" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-27.png 701w, https://www.osradar.com/wp-content/uploads/2020/12/image-27-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-27-696x197.png 696w" sizes="(max-width: 701px) 100vw, 701px" /></figure>



<pre class="wp-block-preformatted">Hereditary  is sustained. Can see same permisson with file even. 
Here, let's give additonal access permission to a user e.g. 'raj'

</pre>



<pre class="wp-block-preformatted">root@ubnt:~# setfacl -dm u:raj:rwx acldemo</pre>



<p>Have a look if raj user have access or not.</p>



<pre class="wp-block-preformatted">root@ubnt:~# getfacl acldemo/</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="562" height="364" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-28.png" alt="Amend user and see permission." class="wp-image-27182" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-28.png 562w, https://www.osradar.com/wp-content/uploads/2020/12/image-28-300x194.png 300w" sizes="(max-width: 562px) 100vw, 562px" /></figure>



<p><strong>Remove ACL entries.</strong></p>



<p>User&#8217;s special  access can be removed using -x and -b option with setfacl.</p>



<p> Let&#8217;s remove ACL permission for user &#8216;raj&#8217;</p>



<pre class="wp-block-preformatted">root@ubnt:~# setfacl -x u:raj acldemo/</pre>



<p>Remove ACL records. </p>



<pre class="wp-block-preformatted">root@ubnt:~# setfacl -b  acldemo/</pre>



<p>Have a look, original status regained.  </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="773" height="221" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-29.png" alt="Remove all ACL records and have a look." class="wp-image-27185" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-29.png 773w, https://www.osradar.com/wp-content/uploads/2020/12/image-29-300x86.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-29-768x220.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-29-696x199.png 696w" sizes="(max-width: 773px) 100vw, 773px" /></figure>



<h3>Conclusion: </h3>



<p>Additional permissions are always required in a complex working environment.  ACL permissions are always helpful to sustain permission but, without compromising any security issue. </p>



<p>Reference: https://help.ubuntu.com/community/FilePermissionsACLs</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-create-and-mange-file-system-access-control-list-acl-with-ubuntu-20-04/">How to create and Mange File System Access Control List (ACL) with Ubuntu 20.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-create-and-mange-file-system-access-control-list-acl-with-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
<p><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>
<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>
<p><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></p>
<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>
<p><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>
<p>After downloading the package and during installation you will have to define and confirm the root password.</p>
<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>
<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>
<p><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>
<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>
<p><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>
<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>
<p><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>
<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>
<p><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>
<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>
<p><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>
<p>Then install phpLDAPadmin.</p>
<pre class="">:~$ sudo apt install phpldapadmin</pre>
<p><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>
<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>
<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>
<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>
<p><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>
<p>Finally, open your favorite web browser and go to <code>http://IP_SERVER_OR_DOMAIN/phpldapadmin</code></p>
<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>
<p>Next, log in.</p>
<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>
<p>Finally, you will see this.</p>
<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>
<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>
	</channel>
</rss>
