{"id":6069,"date":"2021-01-29T16:01:44","date_gmt":"2021-01-29T10:31:44","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6069"},"modified":"2021-08-03T15:10:34","modified_gmt":"2021-08-03T09:40:34","slug":"install-and-configure-open-ldap-server-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/","title":{"rendered":"How to install and configure open LDAP server on Ubuntu 20.04"},"content":{"rendered":"\n<p>From this blog post, we get an apparent view regarding the installation and setup of open LDAP server on ubuntu 20.04. The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was released under LDAP public License.&nbsp;<\/p>\n\n\n\n<p><strong>The OpenLDAP includes:<\/strong><\/p>\n\n\n\n<p>SLAP &#8211; stand-alone LDAP daemon(server)<\/p>\n\n\n\n<p>Libraries implementing the LDAP protocol<\/p>\n\n\n\n<p>Utilities, tools, and sample clients.<\/p>\n\n\n\n<p><strong>&nbsp;Update\/ upgrade the system:<\/strong><\/p>\n\n\n\n<p>First, you need to ensure the upgrade of your cache server. To update and upgrade Ubuntu, you need to log into the server and run the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update \napt upgrade \n<\/code><\/pre>\n\n\n\n<p>once you have upgraded the cache server, then reboot the server if necessary and get ready to install and configure the OpenLDAP.&nbsp;<\/p>\n\n\n\n<p><strong>Installing Open LDAP on Ubuntu20.04.<\/strong><\/p>\n\n\n\n<p>Run the following commands to install open LDAP on Ubuntu20.04.<\/p>\n\n\n\n<p>apt install slapd ldap-utils<\/p>\n\n\n\n<p>During the installation, you will be promoted to set the OpenLDAP administrative password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"602\" height=\"170\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png\" alt=\"\" class=\"wp-image-6070\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53-300x85.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>Set the password and then press &lt;ok&gt; button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"602\" height=\"173\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-54.png\" alt=\"\" class=\"wp-image-6071\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-54.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-54-300x86.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>Confirm the password and continue with the installation and select the &lt;ok&gt; button.<\/p>\n\n\n\n<p>You can confirm the installation was successful by using the commands lapcat to output SLAPD database contents.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># slapcat\ndn: dc=example,dc=com\nobjectClass: top\nobjectClass: dcObject\nobjectClass: organization\no: example.com\ndc: example\nstructuralObjectClass: organization\nentryUUID: e33fc814-e5b9-1038-8243-39a2e6b74e62\ncreatorsName: cn=admin,dc=example,dc=com\ncreateTimestamp: 20190328152831Z\nentryCSN: 20190328152831.511390Z#000000#000#000000\nmodifiersName: cn=admin,dc=example,dc=com\nmodifyTimestamp: 20190328152831Z\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>dn: cn=admin,dc=example,dc=com\nobjectClass: simpleSecurityObject\nobjectClass: organizationalRole\ncn: admin\ndescription: LDAP administrator\nuserPassword:: e1NTSEF9WDIzUEJxbXgycUU3M1dRUmppTVYrZE91U0RNMWswSHE=\nstructuralObjectClass: organizationalRole\nentryUUID: e340fedc-e5b9-1038-8244-39a2e6b74e62\ncreatorsName: cn=admin,dc=example,dc=com\ncreateTimestamp: 20190328152831Z\nentryCSN: 20190328152831.519463Z#000000#000#000000\nmodifiersName: cn=admin,dc=example,dc=com\nmodifyTimestamp: 20190328152831Z\n<\/code><\/pre>\n\n\n\n<p><strong>Step 2:<\/strong> Adding the base dn for the users and groups.<\/p>\n\n\n\n<p>Next is adding a base DN for users and groups. Create filename&nbsp;<\/p>\n\n\n\n<p>basedn. ldif with below contents.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim basedn.ldif\ndn: ou=people,dc=example,dc=com\nobjectClass: organizationalUnit\nou: people\n\ndn: ou=groups,dc=example,dc=com\nobjectClass: organizationalUnit\nou: groups\n\n<\/code><\/pre>\n\n\n\n<p>Replace the <strong>example and com<\/strong> according to your domain components.<\/p>\n\n\n\n<p>Now add the file by running the commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ldapadd -x -D cn=admin,dc=example,dc=com -W -f basedn.ldif\nEnter LDAP Password:\nadding new entry \"ou=people,dc=example,dc=com\"\nadding new entry \"ou=groups,dc=example,dc=com\"\n<\/code><\/pre>\n\n\n\n<p>Step 3: Adding the user accounts and the groups.<\/p>\n\n\n\n<p>Enter the password for the user account and confirm it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ slappasswd\nNew password: \nRe-enter new password: \n{SSHA}Zn4\/E5f+Ork7WZF\/alrpMuHHGufC3x0k\n<\/code><\/pre>\n\n\n\n<p>Create Idif file for adding users.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim ldapusers.ldif\ndn: uid=Skynats technologies,ou=people,dc=example,dc=com\nobjectClass: inetOrgPerson\nobjectClass: posixAccount\nobjectClass: shadowAccount\ncn: Skynats technologies\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sn: Wiz\nuserPassword: {SSHA}Zn4\/E5f+Ork7WZF\/alrpMuHHGufC3x0k\nloginShell: \/bin\/bash\nuidNumber: 2000\ngidNumber: 2000\nhomeDirectory: \/home\/Skynats technologies\n<\/code><\/pre>\n\n\n\n<p>Replace Skynats technologies with the username to add.<\/p>\n\n\n\n<p>dc=example,dc=com with your correct domain.<\/p>\n\n\n\n<p>cs and the sn with the username values.<\/p>\n\n\n\n<p>{SSHA}Zn4\/E5f+Ork7WZF\/alrpMuHHGufc3xOK with your hashed password.<\/p>\n\n\n\n<p>Once you are done with editing, add the account by running.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ldapadd -x -D cn=admin,dc=example,dc=com -W -f ldapusers.ldif \nEnter LDAP Password: \nadding new entry \"uid=Skynats technologies,ou=people,dc=example,dc=com\"\n<\/code><\/pre>\n\n\n\n<p>Do the same for the group. Create Idif file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim ldapgroups.ldif\ndn: cn=Skynats technologies,ou=groups,dc=example,dc=com\nobjectClass: posixGroup\ncn: Skynats technologies\ngidNumber: 2000\nmemberUid: \n<\/code><\/pre>\n\n\n\n<p><strong>Add group:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ldapadd -x -D cn=admin,dc=example,dc=com -W -f ldapgroups.ldif\nEnter LDAP Password: \n adding new entry \"cn=Skynats technologies,ou=groups,dc=example,dc=com\"\n<\/code><\/pre>\n\n\n\n<p>You can combine the two file into a single file.<\/p>\n\n\n\n<p><strong>Step 4 : Install LDAP account manager.<\/strong><\/p>\n\n\n\n<p>I recommend using the LDAP account manager because the phpLDAPadmin doesn&#8217;t work well with PHP 7.2+.so follow the instructions to install and configure LDAP account manager.<\/p>\n\n\n\n<p><strong>Install and configure the LDAP account manager on Ubuntu.<\/strong><\/p>\n\n\n\n<p><strong>Step 1:&nbsp;<\/strong>Install the OpenLDAP server.<\/p>\n\n\n\n<p>First, you have to install and run the LDAP server.<\/p>\n\n\n\n<p><strong>Step 2:&nbsp;<\/strong>Install Apache Webserver &amp; PHP.<\/p>\n\n\n\n<p>You can install the PHP and Apache server by running the commands below.&nbsp;&nbsp;<\/p>\n\n\n\n<p>sudo apt -y install apache2 php php-cgi libapache2-mod-php php-mbstring php-common php-pear<\/p>\n\n\n\n<p>Enable the php-Cgi PHP extensions.<\/p>\n\n\n\n<p><strong>Ubuntu 20.04<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enconf php7.4-cgi\nsudo systemctl reload apache2<\/code><\/pre>\n\n\n\n<p><strong>Step 5: Configure LDAP Client on Ubuntu 20.04.<\/strong><\/p>\n\n\n\n<p>If you don&#8217;t have an active DNS server in the network try to add the LDAP server address to the \/etc\/hosts file.&nbsp;<\/p>\n\n\n\n<p>$ sudo vim \/etc\/hosts<\/p>\n\n\n\n<p>192.168.18.50 ldap.example.com<\/p>\n\n\n\n<p><strong>Install LDAP Client on your ubuntu system:<\/strong><\/p>\n\n\n\n<p>sudo apt -y install libnss-ldap libpam-ldap ldap-utils<\/p>\n\n\n\n<p>Steps to configuring the settings below.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Set LDAP URI -It can be either the IP address or the hostname.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"602\" height=\"105\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-55.png\" alt=\"\" class=\"wp-image-6072\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-55.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-55-300x52.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n\n\n<p>2. Next is the distinguished name of the search base.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"204\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-56.png\" alt=\"\" class=\"wp-image-6073\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-56.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-56-300x102.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>3. Then, select the LDAP versions 3.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"207\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-57.png\" alt=\"\" class=\"wp-image-6074\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-57.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-57-300x103.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>4. Click &lt;yes&gt; button to Make local root Database admin.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"239\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-58.png\" alt=\"\" class=\"wp-image-6075\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-58.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-58-300x119.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>5. Later, choose &lt;No&gt; for Does the LDAP database requires login.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"150\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-59.png\" alt=\"\" class=\"wp-image-6076\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-59.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-59-300x75.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>6. Set LDAP account for root, something like   cn=admin,cd=example,cn=com<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"223\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-60.png\" alt=\"\" class=\"wp-image-6077\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-60.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-60-300x111.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>7. Provide the LDAP ROOT account password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"225\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-61.png\" alt=\"\" class=\"wp-image-6078\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-61.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-61-300x112.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>Once you are done with the installation, edit \/etc\/nsswitch.conf and add ldap authentication.<\/p>\n\n\n\n<p>passwd: compat systemd ldap<\/p>\n\n\n\n<p>group: compat systemd ldap<\/p>\n\n\n\n<p>shadow: compat<\/p>\n\n\n\n<p>Try to create the home directory on the first login by adding the following line to the file \/etc\/pam.d\/common-session<\/p>\n\n\n\n<p>session optional pam_mkhomedir.so skel=\/etc\/skel umask=077<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"119\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-62.png\" alt=\"\" class=\"wp-image-6079\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-62.png 602w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-62-300x59.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<p>That&#8217;s all before that test the LDAP by switching it into the user account.<\/p>\n\n\n\n<p>root@server1:~#&nbsp;<strong>su &#8211; jmutai<\/strong><\/p>\n\n\n\n<p>Creating directory &#8216;\/home\/jmutai&#8217;.<\/p>\n\n\n\n<p>jmutai@server1:~$&nbsp;<strong>id<\/strong><\/p>\n\n\n\n<p>uid=10000(jmutai) gid=10000(sysadmins) groups=10000(sysadmins)<\/p>\n\n\n\n<p><strong>Securing LDAP server with SSL\/TLS on ubuntu.<\/strong><\/p>\n\n\n\n<p>The following guideline will help in explaining the use of self-signed certificates.&nbsp;<\/p>\n\n\n\n<p>&nbsp;Step 1: generate self-signed SSL.<\/p>\n\n\n\n<p>First, login into the LDAP server and generate the SSL certificate.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cd \/etc\/ssl\/private \n# openssl genrsa -aes128 -out ldap_server.key 4096 \n\nGenerating RSA private key, 4096 bit long modulus\n \u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026..++\n \u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.++\n e is 65537 (0x010001)\n Enter pass phrase for ldap_server.key: &lt;Set passphrase&gt;\n Verifying - Enter pass phrase for ldap_server.key: &lt;Confirm passphrase&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>Remove the passphrase from the generating RSA private key.<\/strong><\/p>\n\n\n\n<p>#&nbsp;<strong>openssl rsa -in ldap_server.key -out ldap_server.key<\/strong><\/p>\n\n\n\n<p>Enter pass phrase for ldap_server.key:&nbsp;<strong>&lt;Enter passphrase&gt;<\/strong><\/p>\n\n\n\n<p>writing RSA key<\/p>\n\n\n\n<p><strong>Generate Csr<\/strong>.<\/p>\n\n\n\n<p>#<strong>&nbsp;openssl req -new -days 3650 -key ldap_server.key -out ldap_server.csr&nbsp;<\/strong><\/p>\n\n\n\n<p>You are about to be asked to enter information that will be incorporated<\/p>\n\n\n\n<p>into your certificate request.<\/p>\n\n\n\n<p>What you are about to enter is what is called a Distinguished Name or a DN.<\/p>\n\n\n\n<p>There are quite a few fields but you can leave some blank<\/p>\n\n\n\n<p>For some fields there will be a default value,<\/p>\n\n\n\n<p>If you enter &#8216;.&#8217;, the field will be left blank.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Country Name (2 letter code) &#91;AU]:KE\nState or Province Name (full name) &#91;Some-State]:Nairobi\nLocality Name (eg, city) &#91;]:Nairobi\nOrganization Name (eg, company) &#91;Internet Widgits Pty Ltd]:skynatstechnologies\nOrganizational Unit Name (eg, section) &#91;]:skynatstechnologies\nCommon Name (e.g. server FQDN or YOUR name) &#91;]:ldap.example.com\nEmail Address &#91;]:admin@example.com\nPlease enter the following 'extra' attributes\nto be sent with your certificate request\nA challenge password &#91;]:        \nAn optional company name &#91;]:\n\n<\/code><\/pre>\n\n\n\n<p><strong>Then sign in to your certificate<\/strong>.<\/p>\n\n\n\n<p># openssl x509 -in ldap_server.csr -out ldap_server.crt -req -signkey ldap_server.key -days 3650<\/p>\n\n\n\n<p>Signature ok<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>subject=C = KE, ST = Nairobi, L = Nairobi, O = skynatstechnologies, OU = skynatstechnologies, CN = ldap.example.com, emailAddress = admin@example.com<\/code><\/pre>\n\n\n\n<p>Getting Private key<\/p>\n\n\n\n<p><strong>Step 2: Configure SSL on the LDAP server.<\/strong><\/p>\n\n\n\n<p>Copy certificates and a key to \/etc\/ldap\/sasl2\/ directory.<\/p>\n\n\n\n<p>sudo cp \/etc\/ssl\/private\/{ldap_server.key,ldap_server.crt} \/etc\/ssl\/certs\/ca-certificates.crt \/etc\/ldap\/sasl2\/<\/p>\n\n\n\n<p>Set the ownership certificate to OpenLDAP user.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R openldap. \/etc\/ldap\/sasl2<\/code><\/pre>\n\n\n\n<p>&nbsp;Creating LDAP configuration file for SSL.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># vim ldap_ssl.ldif\ndn: cn=config\nchangetype: modify\nadd: olcTLSCACertificateFile\nolcTLSCACertificateFile: \/etc\/ldap\/sasl2\/ca-certificates.crt\nreplace: olcTLSCertificateFile\nolcTLSCertificateFile: \/etc\/ldap\/sasl2\/ldap_server.crt\nreplace: olcTLSCertificateKeyFile\nolcTLSCertificateKeyFile: \/etc\/ldap\/sasl2\/ldap_server.key\n<\/code><\/pre>\n\n\n\n<p>Use the following commands to apply the configuration.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># ldapmodify -Y EXTERNAL -H ldapi:\/\/\/ -f ldap_ssl.ldif \nSASL\/EXTERNAL authentication started SASL\nusername: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth\nSASL SSF: 0\nmodifying entry \"cn=config\"\n<\/code><\/pre>\n\n\n\n<p><strong>Step 3: Configure LDAP Client<\/strong><\/p>\n\n\n\n<p>It will ensure the connection between the client and server is encrypted. Then add the LS_REQCERT allow line to \/etc\/ldap.conf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"TLS_REQCERT allow\" | tee \/etc\/ldap\/ldap.conf<\/code><\/pre>\n\n\n\n<p>Then configure the OpenLDAP SSL mechanism on below file \/etc\/ldap.conf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo vim \/etc\/ldap.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ssl start_tls<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ssl on<\/code><\/pre>\n\n\n\n<p>Now, the SSL certification is connected between the LDAP client and server.<\/p>\n\n\n\n<p><strong>suggestion&nbsp;<\/strong><\/p>\n\n\n\n<p>Hope this article is helpful and the following guidelines will help you to install and configure the OpenLDAP account manager to administer to your server. further, any assistance or guideline for installation and configuring of the OpenLDAP our <strong><a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#046e9c\" class=\"has-inline-color\">Technical team<\/span><\/a><\/strong> will be available 24\/7 for any assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From this blog post, we get an apparent view regarding the installation and setup of open LDAP server on ubuntu 20.04. The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was released under LDAP public License.&nbsp; The OpenLDAP includes: SLAP &#8211; stand-alone LDAP daemon(server) Libraries [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,90,213,68,212],"tags":[477,478,214],"class_list":["post-6069","post","type-post","status-publish","format-standard","hentry","category-blog","category-managed-cloud-services","category-open-ldap-server","category-server-management","category-ubuntu-20-04","tag-how-to-install-and-configure-open-ldap-server-on-ubuntu-20-04","tag-install-and-configure-open-ldap-server-on-ubuntu-20-04","tag-ubuntu-20-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install and configure open LDAP server on Ubuntu 20.04<\/title>\n<meta name=\"description\" content=\"The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was develop\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and configure open LDAP server on Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was develop\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-29T10:31:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-03T09:40:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png\" \/>\n<meta name=\"author\" content=\"Nabeela\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nabeela\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Nabeela\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\"},\"headline\":\"How to install and configure open LDAP server on Ubuntu 20.04\",\"datePublished\":\"2021-01-29T10:31:44+00:00\",\"dateModified\":\"2021-08-03T09:40:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/\"},\"wordCount\":994,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/image-53.png\",\"keywords\":[\"how to install and configure open ldap server on ubuntu 20.04\",\"install and configure open ldap server on ubuntu 20.04\",\"Ubuntu 20.04\"],\"articleSection\":[\"Blog\",\"managed cloud services\",\"Open LDAP server\",\"server management\",\"Ubuntu 20.04\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/\",\"name\":\"How to install and configure open LDAP server on Ubuntu 20.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/image-53.png\",\"datePublished\":\"2021-01-29T10:31:44+00:00\",\"dateModified\":\"2021-08-03T09:40:34+00:00\",\"description\":\"The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was develop\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/image-53.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/image-53.png\",\"width\":602,\"height\":170},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/install-and-configure-open-ldap-server-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and configure open LDAP server on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\",\"name\":\"Nabeela\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"caption\":\"Nabeela\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install and configure open LDAP server on Ubuntu 20.04","description":"The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was develop","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to install and configure open LDAP server on Ubuntu 20.04","og_description":"The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was develop","og_url":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-01-29T10:31:44+00:00","article_modified_time":"2021-08-03T09:40:34+00:00","og_image":[{"url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png","type":"","width":"","height":""}],"author":"Nabeela","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Nabeela","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/"},"author":{"name":"Nabeela","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0"},"headline":"How to install and configure open LDAP server on Ubuntu 20.04","datePublished":"2021-01-29T10:31:44+00:00","dateModified":"2021-08-03T09:40:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/"},"wordCount":994,"commentCount":0,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png","keywords":["how to install and configure open ldap server on ubuntu 20.04","install and configure open ldap server on ubuntu 20.04","Ubuntu 20.04"],"articleSection":["Blog","managed cloud services","Open LDAP server","server management","Ubuntu 20.04"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/","url":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/","name":"How to install and configure open LDAP server on Ubuntu 20.04","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png","datePublished":"2021-01-29T10:31:44+00:00","dateModified":"2021-08-03T09:40:34+00:00","description":"The OpenLDAP is an open-source of the lightweight directory access protocol(LDAP) which was developed by the OpenLDAP project and was develop","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/01\/image-53.png","width":602,"height":170},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/install-and-configure-open-ldap-server-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install and configure open LDAP server on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0","name":"Nabeela","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","caption":"Nabeela"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6069"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6069\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}