How do I get the ldapsearch on Scientific Linux?

I am trying to find the ldapsearch client for Scientific Linux but cannot find how to install the client in order to do LDAP queries.

  • Since SL is based on RHEL wouldn't the install info for ldapsearch on RHEL work? linux.die.net/man/1/ldapsearch You may also look at OpenLDAP and see if that gets you the search tool you like.
    – TheCleaner
    Dec 18, 2012 at 17:26

2 Answers 2


Use yum whatprovides to see what package provides a file. The following was run on SL6.x:

$ yum whatprovides */ldapsearch
openldap-clients-2.4.23-15.el6.x86_64 : LDAP client utilities
Matched from:
Filename    : /usr/bin/ldapsearch
  • 7
    Thank you! yum install openldap-clients -y works.
    – phyatt
    Aug 30, 2018 at 19:41

It's part of the openldap-clients package, so yum install openldap-clients.

The package contents are thus:

$ repoquery -lq openldap-clients

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .