How To Install nss-pam-ldapd on CentOS 7

In this tutorial we learn how to install nss-pam-ldapd on CentOS 7. nss-pam-ldapd is An nsswitch module which uses directory servers

Introduction

In this tutorial we learn how to install nss-pam-ldapd on CentOS 7.

What is nss-pam-ldapd

The nss-pam-ldapd daemon, nslcd, uses a directory server to look up name service information (users, groups, etc.) on behalf of a lightweight nsswitch module. The nss-pam-ldapd daemon, nslcd, uses a directory server to look up name service information (users, groups, etc.) on behalf of a lightweight nsswitch module.

We can use yum or dnf to install nss-pam-ldapd on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nss-pam-ldapd.

Install nss-pam-ldapd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install nss-pam-ldapd using yum by running the following command:

sudo yum -y install nss-pam-ldapd

Install nss-pam-ldapd on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install nss-pam-ldapd using dnf by running the following command:

sudo dnf -y install nss-pam-ldapd

How To Uninstall nss-pam-ldapd on CentOS 7

To uninstall only the nss-pam-ldapd package we can use the following command:

sudo dnf remove nss-pam-ldapd

References

Summary

In this tutorial we learn how to install nss-pam-ldapd on CentOS 7 using yum and dnf.