如何在Scientific Linux上获得ldapsearch?


25

如何在Scientific Linux上获得ldapsearch?

我正在尝试找到适用于Scientific Linux的ldapsearch客户端,但是找不到如何安装客户端以进行LDAP查询。


由于SL基于RHEL,ldapsearch在RHEL上的安装信息不起作用吗?linux.die.net/man/1/ldapsearch 您还可以查看OpenLDAP,看看是否可以得到您喜欢的搜索工具。
TheCleaner

Answers:


52

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

3
谢谢! yum install openldap-clients -y作品。
phyatt

10

因此,它是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
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.