How To Install openldap on Fedora 34

openldap is LDAP support libraries LDAP support libraries

Introduction

In this tutorial we learn how to install openldap on Fedora 34.

What is openldap

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP. openldap 2.4.57 5.fc34 i686 274 k openldap-2.4.57-5.fc34.src.rpm updates LDAP support libraries http OpenLDAP OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

We can use yum or dnf to install openldap on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install openldap.

Install openldap on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install openldap using dnf by running the following command:

sudo dnf -y install openldap

Install openldap on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install openldap using yum by running the following command:

sudo yum -y install openldap

How To Uninstall openldap on Fedora 34

To uninstall only the openldap package we can use the following command:

sudo dnf remove openldap

openldap Package Contents on Fedora 34

/etc/openldap
/etc/openldap/certs
/etc/openldap/ldap.conf
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/645ea5bd7aac490c0b345eb552615173405269
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/b0886e911a34d2502825841f0bf0091f8dcb0b
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/7caf952dac19940e6cee87fe5369747d1bfbd0
/usr/lib/liblber-2.4.so.2
/usr/lib/liblber-2.4.so.2.11.5
/usr/lib/libldap_r-2.4.so.2
/usr/lib/libldap_r-2.4.so.2.11.5
/usr/lib/libslapi-2.4.so.2
/usr/lib/libslapi-2.4.so.2.11.5
/usr/libexec/openldap
/usr/share/doc/openldap
/usr/share/doc/openldap/ANNOUNCEMENT
/usr/share/doc/openldap/CHANGES
/usr/share/doc/openldap/README
/usr/share/licenses/openldap
/usr/share/licenses/openldap/COPYRIGHT
/usr/share/licenses/openldap/LICENSE
/usr/share/man/man5/ldap.conf.5.gz
/usr/share/man/man5/ldif.5.gz
/etc/openldap
/etc/openldap/certs
/etc/openldap/ldap.conf
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/d501c1390efd2359729961b6c409f1e026ac2b
/usr/lib/.build-id/91
/usr/lib/.build-id/91/a1967acb4698ef20db96fa9d0e69db5ed163b1
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/031e1f022ed3d46772b2b6e0d4a874f001e11f
/usr/lib64/liblber-2.4.so.2
/usr/lib64/liblber-2.4.so.2.11.5
/usr/lib64/libldap_r-2.4.so.2
/usr/lib64/libldap_r-2.4.so.2.11.5
/usr/lib64/libslapi-2.4.so.2
/usr/lib64/libslapi-2.4.so.2.11.5
/usr/libexec/openldap
/usr/share/doc/openldap
/usr/share/doc/openldap/ANNOUNCEMENT
/usr/share/doc/openldap/CHANGES
/usr/share/doc/openldap/README
/usr/share/licenses/openldap
/usr/share/licenses/openldap/COPYRIGHT
/usr/share/licenses/openldap/LICENSE
/usr/share/man/man5/ldap.conf.5.gz
/usr/share/man/man5/ldif.5.gz
/etc/openldap
/etc/openldap/certs
/etc/openldap/ldap.conf
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/22587a0f1ff78d379ea607e80a60e0ef758468
/usr/lib/.build-id/58
/usr/lib/.build-id/58/7a6a43582c134083ffd8f1cb87254278cceba3
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/735afa2553b36cb17fa5fa18f70725f9775335
/usr/lib/liblber-2.4.so.2
/usr/lib/liblber-2.4.so.2.11.5
/usr/lib/libldap_r-2.4.so.2
/usr/lib/libldap_r-2.4.so.2.11.5
/usr/lib/libslapi-2.4.so.2
/usr/lib/libslapi-2.4.so.2.11.5
/usr/libexec/openldap
/usr/share/doc/openldap
/usr/share/doc/openldap/ANNOUNCEMENT
/usr/share/doc/openldap/CHANGES
/usr/share/doc/openldap/README
/usr/share/licenses/openldap
/usr/share/licenses/openldap/COPYRIGHT
/usr/share/licenses/openldap/LICENSE
/usr/share/man/man5/ldap.conf.5.gz
/usr/share/man/man5/ldif.5.gz
/etc/openldap
/etc/openldap/certs
/etc/openldap/ldap.conf
/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/9c879729930dacf8c3a5eacfd31fbb80d0e86a
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/0fb2de91d1f46f3968883c6d1c95ea8086f7d6
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/e14379d0f1193df61e3a684092191cc94aa294
/usr/lib64/liblber-2.4.so.2
/usr/lib64/liblber-2.4.so.2.11.5
/usr/lib64/libldap_r-2.4.so.2
/usr/lib64/libldap_r-2.4.so.2.11.5
/usr/lib64/libslapi-2.4.so.2
/usr/lib64/libslapi-2.4.so.2.11.5
/usr/libexec/openldap
/usr/share/doc/openldap
/usr/share/doc/openldap/ANNOUNCEMENT
/usr/share/doc/openldap/CHANGES
/usr/share/doc/openldap/README
/usr/share/licenses/openldap
/usr/share/licenses/openldap/COPYRIGHT
/usr/share/licenses/openldap/LICENSE
/usr/share/man/man5/ldap.conf.5.gz
/usr/share/man/man5/ldif.5.gz

References

Summary

In this tutorial we learn how to install openldap on Fedora 34 using yum and dnf.