Linux – How to get ldapsearch on Scientific Linux

ldaplinuxredhat

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.

Best Answer

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