10.3. ldapmodify コマンドの対話的な使用
対話モードで LDAP (Lightweight Directory Access Protocol) エントリーを変更できます。
手順
コマンド行で、
ldapmodifyコマンドの後に LDAP Data Interchange Format (LDIF) ステートメントを入力します。例10.1 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 ファイルを指定します。例10.2
ldapmodifyコマンドは、LDIF ファイルから変更データを読み取ります。# ldapmodify -Y GSSAPI -H ldap://server.example.com -f ~/example.ldif