如何在 Scientific Linux 上获取 ldapsearch?
我正在尝试寻找适用于 Scientific Linux 的 ldapsearch 客户端,但找不到如何安装该客户端来执行 LDAP 查询。
答案1
用于yum whatprovides
查看哪个包提供了文件。以下内容在 SL6.x 上运行:
$ yum whatprovides */ldapsearch
...
openldap-clients-2.4.23-15.el6.x86_64 : LDAP client utilities
Matched from:
Filename : /usr/bin/ldapsearch
答案2
它是 openldap-clients 包的一部分,所以yum install openldap-clients
。
包装内容如下:
$ repoquery -lq openldap-clients
/usr/bin/ldapadd
/usr/bin/ldapcompare
/usr/bin/ldapdelete
/usr/bin/ldapexop
/usr/bin/ldapmodify
/usr/bin/ldapmodrdn
/usr/bin/ldappasswd
/usr/bin/ldapsearch
/usr/bin/ldapurl
/usr/bin/ldapwhoami
/usr/share/man/man1/ldapadd.1.gz
/usr/share/man/man1/ldapcompare.1.gz
/usr/share/man/man1/ldapdelete.1.gz
/usr/share/man/man1/ldapexop.1.gz
/usr/share/man/man1/ldapmodify.1.gz
/usr/share/man/man1/ldapmodrdn.1.gz
/usr/share/man/man1/ldappasswd.1.gz
/usr/share/man/man1/ldapsearch.1.gz
/usr/share/man/man1/ldapurl.1.gz
/usr/share/man/man1/ldapwhoami.1.gz