如何获得科学Linux上的ldapsearch?
我试图find科学Linux的ldapsearch客户端,但无法find如何安装客户端以执行LDAP查询。
使用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
它是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