我正在尝试从此 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
输入.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