OpenLdap 데이터베이스의 기록에서 OU 삭제

OpenLdap 데이터베이스의 기록에서 OU 삭제

이 LDAP 레코드에서 "ou=ABCD"를 제거하려고 합니다.

   # [email protected], ABCD, Active, Member, myldapdomain.org
   dn: [email protected],ou=ABCD,ou=Active,ou=Member,dc=myldapdomain,dc=org
   uid: [email protected]
   cn: [email protected]
   mail: [email protected]
   mydn: 012348
   middleName: middleName
   sn: McManum
   class: Member
   status: A
   branch: Philadelphia
   securityAnswer: Skippy
   securityQuestion: First pet's name?
   givenName: James
   userPassword:: easdfafy8xUksdeti23MMW1asdfqbl123HBdfa0a9
   objectClass: top1
   objectClass: person
   objectClass: AbcPerson
   objectClass: AbcUser

Enter.ldif

  dn: [email protected],ou=ABCD,ou=Active,ou=Member,dc=myldapdomain,dc=org
  changetype: modify

다음 문을 실행합니다.

  ldapmodify -v -h localhost -x  -D "cn=admin,dc=myldapdomain,dc=org" -w mypassword -f < input.ldap

다음 오류가 발생합니다.

  ldap_initialize( ldap://localhost )
  delete :ABCD
  modifying entry "dn:[email protected],ou=ABCD,ou=Active,ou=Member,dc=myldapdomain,dc=org"
  modify complete
  ldapmodify: Undefined attribute type (17)
  additional info: ABCD: attribute type undefined

관련 정보