9.3. ldapmodify コマンドの対話的な使用
対話モードで LDAP (Lightweight Directory Access Protocol) エントリーを変更できます。
手順
コマンドラインで、
ldapmodifyコマンドの後に LDAP Data Interchange Format (LDIF) ステートメントを入力します。たとえば、
<testuser>の電話番号を変更するには、以下を実行します。# ldapmodify -Y GSSAPI -H ldap://<server.example.com> dn: uid=testuser,cn=users,cn=accounts,dc=example,dc=com changetype: modify replace: telephoneNumber telephonenumber: 88888888-Yオプションを使用するには、Kerberos チケットを取得する必要があることに注意してください。-
Ctlr+Dを押してインタラクティブモードを終了します。 または、
ldapmodifyコマンドの後に LDIF ファイルを指定します。ldapmodifyコマンドは、LDIF ファイルから変更データを読み取ります。# ldapmodify -Y GSSAPI -H ldap://<server.example.com> -f ~/example.ldif