9.3. Using ldapmodify command interactively
You can modify Lightweight Directory Access Protocol (LDAP) entries in the interactive mode.
Procedure
In a command line, enter the LDAP Data Interchange Format (LDIF) statement after the
ldapmodifycommand.For example, to change the telephone number for a
<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: 88888888Note that you need to obtain a Kerberos ticket for using
-Yoption.-
Press
Ctlr+Dto exit the interactive mode. Alternatively, provide an LDIF file after
ldapmodifycommand:The
ldapmodifycommand reads modification data from an LDIF file# ldapmodify -Y GSSAPI -H ldap://<server.example.com> -f ~/example.ldif