How to install and configure LDAP client on CentOS 7

How to install and configure LDAP client on CentOS 7

Add LDAP server address to `/etc/hosts` ldap

Update the package manager’s package list:

yum update
yum install openldap-clients nss-pam-ldapd -y

During the installation, the package installer will ask you a variety of questions. Enter the values according to your environment.

LDAP server Uniform Resource Identifier:

# Distinguished name of the search base:

# LDAP version to use

# Make local root Database admin:

# Does the LDAP database require login:

# LDAP account for root

# LDAP root account password:

Use the `getent` command to get the LDAP entries from the LDAP server.

getent passwd badshah
# badshah:*:10001:10001:Mukhtiar Badshah:/home/badshah:/bin/bash

Follow us TwitterFacebookLinkedIn

Open Source Listing

Previous Post
Next Post


Avatar for

Cool. I spent a long time looking for relevant content and found that your article gave me new ideas, which is very helpful for my research. I think my thesis can be completed more smoothly. Thank you.

Leave a Reply