9.3. ldapmodify 명령을 대화형으로 사용

대화형 모드에서 LDAP(Lightweight Directory Access Protocol) 항목을 수정할 수 있습니다.

절차

  1. 명령줄에서 LDAP Data Interchange Format(LDIF) 문을 ldapmodify 명령 뒤에 입력합니다.

    예 9.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 티켓을 받아야 합니다.

  2. Ctlr+D 를 눌러 대화형 모드를 종료합니다.
  3. 또는 ldapmodify 명령 뒤에 LDIF 파일을 제공합니다.

    예 9.2. ldapmodify 명령은 LDIF 파일에서 수정 데이터를 읽습니다.

    # ldapmodify -Y GSSAPI -H ldap://server.example.com -f ~/example.ldif

추가 리소스

  • ldapmodify 명령을 사용하는 방법에 대한 자세한 내용은 ldapmodify(1) 매뉴얼 페이지를 참조하십시오.
  • LDIF 구조에 대한 자세한 내용은 ldif(5) 도움말 페이지를 참조하십시오.