lsldap:コマンドが見つかりません。 lsldapに似た他の機能を使用できますか?

lsldap:コマンドが見つかりません。 lsldapに似た他の機能を使用できますか?

Unixには "lsldap -a エンティティ***"というコマンドがあります。

Linuxで同じ機能を得る方法はありますか?

ベストアンサー1

openldap-clients パッケージには、必要なタスクを実行する ldapsearch があります。マニュアルページから:

LDAPSEARCH(1) 一般コマンドマニュアル LDAPSEARCH(1)

名前 ldapsearch - LDAP 検索ツール

概要 ldapsearch [-V[V]] [-d デバッグレベル] [-n] [-v] [-c] [-u] [-t[t]] [-T パス] [-F プレフィックス] [- A ] [-L[L[L]]] [-S 属性] [-b 検索ベース] [-s {base|one|sub|children}] [-a {never|always|search|find}] [ -l 時間制限] [-z サイズ制限] [-f ファイル] [-M[M]] [-x] [-D バインディング] [-W] [-w パスワード] [-y パスワードファイル] [-H ldapuri ] [ -h ldaphost] [-p ldapport] [-P {2|3}] [-e [!]ext[=extparam]] [-E [!]ext[=extparam]] [-o opt[ = optparam] ] [-O セキュリティ属性] [-I] [-Q] [-N] [-U authcid] [-R 領域] [-X authzid] [-Y mech] [-Z[Z]] フィルタ[プロパティ...]

説明ldapsearchは、ldap_search_ext(3)ライブラリによって呼び出されるシェルアクセス可能インタフェースです。

   ldapsearch opens a connection to an LDAP server, binds, and performs a search using specified parameters.
   The filter should conform to the string representation for search filters as defined in RFC 4515.  If not
   provided, the default filter, (objectClass=*), is used.

   If ldapsearch finds one or more entries, the attributes specified by attrs are returned.  If * is listed,
   all  user attributes are returned.  If + is listed, all operational attributes are returned.  If no attrs
   are listed, all user attributes are returned.  If only 1.1 is listed, no attributes will be returned.

   The search results are displayed using an extended version of LDIF.  Option -L controls the format of the
   output.

おすすめ記事