9.3. ldapmodify 명령을 대화형으로 사용
대화형 모드에서 LDAP(Lightweight Directory Access Protocol) 항목을 수정할 수 있습니다.
프로세스
명령줄에서
ldapmodify명령 뒤에 LDAP 데이터 교환 형식(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